Function: -reductions

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

Signature

(-reductions FN LIST)

Documentation

Return a list of FN's intermediate reductions across LIST.

That is, a list of the intermediate values of the accumulator when -reduce (which see) is called with the same arguments.

This function's anaphoric counterpart is --reductions.

For other folds, see also -reductions and -reductions-r.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -reductions (fn list)
  "Return a list of FN's intermediate reductions across LIST.
That is, a list of the intermediate values of the accumulator
when `-reduce' (which see) is called with the same arguments.

This function's anaphoric counterpart is `--reductions'.

For other folds, see also `-reductions' and `-reductions-r'."
  (declare (important-return-value t))
  (if list
      (--reductions-from (funcall fn acc it) (car list) (cdr list))
    (list (funcall fn))))