Function: seq-max

seq-max is a byte-compiled function defined in seq.el.gz.

Signature

(seq-max SEQUENCE)

Documentation

Return the largest element of SEQUENCE.

SEQUENCE must be a sequence of numbers or markers.

Other relevant functions are documented in the sequence group.

View in manual

Shortdoc

;; sequence
(seq-max [1 2 3])
    => 3

Implementations

(seq-max SEQUENCE) in `seq.el'.

Undocumented

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/seq.el.gz
;;;###autoload
(cl-defgeneric seq-max (sequence)
  "Return the largest element of SEQUENCE.
SEQUENCE must be a sequence of numbers or markers."
  (apply #'max (seq-into sequence 'list)))