supremum ( seq -- elt )


Vocabulary
sequences

Inputs
seqa sequence


Outputs
eltan object


Word description
Outputs the greatest element of seq.

Examples
Example:
USING: sequences prettyprint ; { 1 2 3 4 5 } supremum .
5

Example:
USING: sequences prettyprint ; { "c" "b" "a" } supremum .
"c"


Errors
Throws an error if the sequence is empty.

See also
min, max, infimum, infimum-by, supremum-by

Definition