Function: --all?

--all? is a macro defined in dash.el.

Signature

(--all? FORM LIST)

Documentation

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

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.

The similar macro --every is more widely useful, since it returns the last non-nil result of FORM instead of just t on success.

Alias: --all-p, --every-p, --every?.

This is the anaphoric counterpart to -all?.

Aliases

--all-p --every? --every-p

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defmacro --all? (form list)
  "Return t if FORM evals to non-nil for all items in LIST.
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.

The similar macro `--every' is more widely useful, since it
returns the last non-nil result of FORM instead of just t on
success.

Alias: `--all-p', `--every-p', `--every?'.

This is the anaphoric counterpart to `-all?'."
  (declare (debug (form form)))
  `(and (--every ,form ,list) t))