pub fn is_sorted<T: Ord, I: Iterator<Item = T>>(iterator: I) -> bool
Expand description

Checks if an iterator yields ordered values.