max (Function)
Signature: max(a: t0, b: t0) -> t0
Description: The larger of two values of one numeric type, at that type. Integers compare in their own order, unsigned for the uint types. Floats follow IEEE 754 maximum: NaN on either side gives NaN and 0.0 is above -0.0. Total: performs no Arith operation.
Parameters
- a (
t0): The first value - b (
t0): The second value, of the same numeric type
Returns: t0
Example
let high = max(3, 7) // 7
let best = foldList([4, 9, 2], 0, max) // 9
high = max (3, 7) // 7
best = foldList ([4, 9, 2], 0, max) // 9