Function: --every

--every is a macro defined in dash.el.

Signature

(--every FORM LIST)

Documentation

Return non-nil if FORM evals to non-nil for all items in LIST.

If so, return the last such result of FORM. Otherwise, once an item is reached for which FORM yields nil, return nil without evaluating FORM for any further LIST elements. Each element of LIST in turn is bound to it and its index within LIST to it-index before evaluating FORM.

This macro is like --every-p, but on success returns the last non-nil result of FORM instead of just t.

This is the anaphoric counterpart to -every.

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defmacro --every (form list)
  "Return non-nil if FORM evals to non-nil for all items in LIST.
If so, return the last such result of FORM.  Otherwise, once an
item is reached for which FORM yields nil, return nil without
evaluating FORM for any further LIST elements.
Each element of LIST in turn is bound to `it' and its index
within LIST to `it-index' before evaluating FORM.

This macro is like `--every-p', but on success returns the last
non-nil result of FORM instead of just t.

This is the anaphoric counterpart to `-every'."
  (declare (debug (form form)))
  (let ((a (make-symbol "all")))
    `(let ((,a t))
       (--each-while ,list (setq ,a ,form))
       ,a)))