Function: -each-r-while

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

Signature

(-each-r-while LIST PRED FN)

Documentation

Call FN on each ITEM in reversed LIST, while (PRED ITEM) is non-nil.

Once an ITEM is reached for which PRED returns nil, FN is no longer called. Return nil; this function is intended for side effects.

Its anaphoric counterpart is --each-r-while.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -each-r-while (list pred fn)
  "Call FN on each ITEM in reversed LIST, while (PRED ITEM) is non-nil.
Once an ITEM is reached for which PRED returns nil, FN is no
longer called.  Return nil; this function is intended for side
effects.

Its anaphoric counterpart is `--each-r-while'."
  (--each-r-while list (funcall pred it) (funcall fn it)))