Function: markdown-max-of-seq

markdown-max-of-seq is a byte-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 ~/.emacs.d/elpa/markdown-mode-20260321.143/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))