pub fn consolidate_updates_slice<D: Ord, T: Ord, R: Semigroup>( slice: &mut [(D, T, R)], ) -> usize
Sorts and consolidates a slice, returning the valid prefix length.