Function: markdown-min-of-seq
markdown-min-of-seq is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-min-of-seq MAP-FN SEQ)
Documentation
Apply MAP-FN to SEQ and return element of SEQ with minimum value of MAP-FN.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-min-of-seq (map-fn seq)
"Apply MAP-FN to SEQ and return element of SEQ with minimum value of MAP-FN."
(cl-loop for el in seq
with min = 1.0e+INF ; infinity
with min-el = nil
do (let ((res (funcall map-fn el)))
(when (< res min)
(setq min res)
(setq min-el el)))
finally return min-el))