pub fn max<I>(iterable: I) -> Option<I::Item>
Expand description
Return the maximum value of the iterable.
IntoIterator
enabled version of Iterator::max
.
use itertools::max;
assert_eq!(max(0..10), Some(9));
pub fn max<I>(iterable: I) -> Option<I::Item>
Return the maximum value of the iterable.
IntoIterator
enabled version of Iterator::max
.
use itertools::max;
assert_eq!(max(0..10), Some(9));