Function: -elem-index

-elem-index is a byte-compiled function defined in dash.el.

Signature

(-elem-index ELEM LIST)

Documentation

Return the first index of ELEM in LIST.

That is, the index within LIST of the first element that is equal to ELEM. Return nil if there is no such element.

See also: -find-index.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -elem-index (elem list)
  "Return the first index of ELEM in LIST.
That is, the index within LIST of the first element that is
`equal' to ELEM.  Return nil if there is no such element.

See also: `-find-index'."
  (declare (pure t) (side-effect-free t))
  (--find-index (equal elem it) list))