Function: markdown-min-of-seq
markdown-min-of-seq is a natively 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 /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/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))