infimum ( seq -- elt )


Vocabulary
sequences

Inputs
seqa sequence


Outputs
eltan object


Word description
Outputs the least element of seq.

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

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


Errors
Throws an error if the sequence is empty.

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

Definition