pub fn consolidate_updates_from<D: Ord, T: Ord, R: Semigroup>(
    vec: &mut Vec<(D, T, R)>,
    offset: usize
)
Expand description

Sorts and consolidate vec[offset..].

This method will sort vec[offset..] and then consolidate runs of more than one entry with identical first two elements by accumulating the third elements of the triples. Should the final accumulation be zero, the element is discarded.