Function: markdown-max-of-seq
markdown-max-of-seq is a natively compiled function defined in
markdown-mode.el.
Signature
(markdown-max-of-seq MAP-FN SEQ)
Documentation
Apply MAP-FN to SEQ and return element of SEQ with maximum 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-max-of-seq (map-fn seq)
"Apply MAP-FN to SEQ and return element of SEQ with maximum value of MAP-FN."
(cl-loop for el in seq
with max = -1.0e+INF ; negative infinity
with max-el = nil
do (let ((res (funcall map-fn el)))
(when (and res (> res max))
(setq max res)
(setq max-el el)))
finally return max-el))