Function: -min-by
-min-by is a byte-compiled function defined in dash.el.
Signature
(-min-by COMPARATOR LIST)
Documentation
Take a comparison function COMPARATOR and a LIST and return the least element of the list by the comparison function.
See also combinator -on which can transform the values before
comparing them.
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -min-by (comparator list)
"Take a comparison function COMPARATOR and a LIST and return
the least element of the list by the comparison function.
See also combinator `-on' which can transform the values before
comparing them."
(declare (important-return-value t))
(--reduce (if (funcall comparator it acc) acc it) list))