Get a larger number from two possibly empty numbers. Returns None when both operands are None, otherwise returns the other (nonempty) operand.
None
max2Any(1)(2) // Some(2)max2Any(1)(null) // Some(1)max2Any(null)(undefined) // None
Get a larger number from two possibly empty numbers. Returns
None
when both operands areNone
, otherwise returns the other (nonempty) operand.