Function: -each

-each is a byte-compiled function defined in dash.el.

Signature

(-each LIST FN)

Documentation

Call FN on each element of LIST.

Return nil; this function is intended for side effects.

Its anaphoric counterpart is --each.

For access to the current element's index in LIST, see
-each-indexed.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -each (list fn)
  "Call FN on each element of LIST.
Return nil; this function is intended for side effects.

Its anaphoric counterpart is `--each'.

For access to the current element's index in LIST, see
`-each-indexed'."
  (declare (indent 1))
  (ignore (mapc fn list)))