pub fn is_sorted<T: Borrow<usize>>(
sequence: impl IntoIterator<Item = T>,
) -> bool
Expand description
Checks whether the given index sequence is monotonically non-decreasing.
pub fn is_sorted<T: Borrow<usize>>(
sequence: impl IntoIterator<Item = T>,
) -> bool
Checks whether the given index sequence is monotonically non-decreasing.