[−][src]Function differential_dataflow::consolidation::consolidate_from
pub fn consolidate_from<T: Ord, R: Semigroup>(
vec: &mut Vec<(T, R)>,
offset: usize
)
Sorts and consolidate vec[offset..]
.
This method will sort vec[offset..]
and then consolidate runs with the same first
element of a pair by accumulating the second elements of the pairs. Should the final
accumulation be zero, the element is discarded.