Greatest element of a list
The built-in function works with any type that defines ordering.
say max 10, 4, 5, -2, 11;
say max <zero one two three four five six seven eight nine>;
Output:
11
zero
The built-in function works with any type that defines ordering.
say max 10, 4, 5, -2, 11;
say max <zero one two three four five six seven eight nine>;
11
zero