itertools

Function merge_join_by

Source
pub fn merge_join_by<I, J, F>(
    left: I,
    right: J,
    cmp_fn: F,
) -> MergeJoinBy<I::IntoIter, J::IntoIter, F> 
where I: IntoIterator, J: IntoIterator, F: FnMut(&I::Item, &J::Item) -> Ordering,
Expand description

Return an iterator adaptor that merge-joins items from the two base iterators in ascending order.

IntoIterator enabled version of Itertools::merge_join_by.