OxL Reference

method iter.min

The smallest element, or none for an empty sequence.

Example:

oxl✓ checked in CI
fn main() io {
  print("{[3, 1, 2].iter().min()}")
}
Output
1
pub(api) move fn min() -> T? where T: Ord

Complexity. O(n).

Since. 1.0.0-beta

Returns

T? where T: Ord

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/iter.oxl:765

See also