pub fn consolidate_slice<T: Ord, R: Semigroup>(slice: &mut [(T, R)]) -> usize
Expand description

Sorts and consolidates a slice, returning the valid prefix length.