OxL Reference

method isize.min

The smaller of the two values.

Example:

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

Complexity. O(1).

Since. 1.0.0-beta

Parameters

NameType
oisize

Returns

isize

Effects

none declared (pure unless the body says otherwise)

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

See also