Function: -fix

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

Signature

(-fix FN LIST)

Documentation

Compute the (least) fixpoint of FN with initial input LIST.

FN is called at least once, results are compared with equal.

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -fix (fn list)
  "Compute the (least) fixpoint of FN with initial input LIST.

FN is called at least once, results are compared with `equal'."
  (declare (important-return-value t))
  (let ((re (funcall fn list)))
    (while (not (equal list re))
      (setq list re)
      (setq re (funcall fn re)))
    re))