method u64.min
The smaller of the two values.
Example:
fn main() io {
let a: u64 = 3
print("{a.min(2)} {a.min(8)}")
}Output
2 3
pub(api) fn min(o: u64) -> u64Complexity. O(1).
Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
o | u64 |
Returns
u64
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/numbers.oxl:2299