method iter.min
The smallest element, or none for an empty sequence.
Example:
fn main() io {
print("{[3, 1, 2].iter().min()}")
}Output
1
pub(api) move fn min() -> T? where T: OrdComplexity. 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