Skip to main content

is_sorted_and_unique_with

Function is_sorted_and_unique_with 

Source
pub fn is_sorted_and_unique_with<T, I, F>(iter: I, less_than: F) -> bool
where T: Clone, I: IntoIterator<Item = T>, F: FnMut(&T, &T) -> bool,
Expand description

Check whether an iterator contains values that are sorted and unique, comparing with a custom function