Basic module

Max

procedure2 overloadsSource

The larger of a and b. Works on any type with >.

Max :: (a: $T, b: T) -> T

Parameters

a: $T
b: T

Returns

T
Example↗
assert(max(3, 7) == 7);
Max :: (a: $T, x: ..T) -> T

The largest of all the arguments. T must be a number, pointer or enum.

Parameters

a: $T
x: ..T

Returns

T
Example↗
assert(max(9, 4, 6, 8) == 9);

See also