OxL Reference

method i8.max

The larger of the two values.

Example:

oxl✓ checked in CI
fn main() io {
  let a: i8 = 3
  print("{a.max(2)} {a.max(8)}")
}
Output
3 8
pub(api) fn max(o: i8) -> i8

Complexity. O(1).

Since. 1.0.0-beta

Parameters

NameType
oi8

Returns

i8

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/numbers.oxl:1318

See also