{ Frameless }

max($arg, $collation)

The max($arg) or max($arg, $collation) function returns a value that is equal to the highest value appearing in the input sequence.

Arguments

ArgumentType
$argxs:anyAtomicType
$collationxs:string
Return valuexs:anyAtomicType

Examples

max((1, 2, 3, 4))4
max(("x", "y", "z"))"z"

N.B

The max() function has been implemented only for numbers, not yet for durations.