Function: --find-index

--find-index is a macro defined in dash.el.

Signature

(--find-index FORM LIST)

Documentation

Return the first index in LIST for which FORM evals to non-nil.

Return nil if no such index is found. Each element of LIST in turn is bound to it and its index within LIST to it-index before evaluating FORM. This is the anaphoric counterpart to -find-index.

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defmacro --find-index (form list)
  "Return the first index in LIST for which FORM evals to non-nil.
Return nil if no such index is found.
Each element of LIST in turn is bound to `it' and its index
within LIST to `it-index' before evaluating FORM.
This is the anaphoric counterpart to `-find-index'."
  (declare (debug (form form)))
  `(--some (and ,form it-index) ,list))