devela::_dep::itertools

Function merge_join_by

pub fn merge_join_by<I, J, F, T>(
    left: I,
    right: J,
    cmp_fn: F,
) -> MergeBy<<I as IntoIterator>::IntoIter, <J as IntoIterator>::IntoIter, MergeFuncLR<F, <F as FuncLR<<<I as IntoIterator>::IntoIter as Iterator>::Item, <<J as IntoIterator>::IntoIter as Iterator>::Item>>::T>> 
where I: IntoIterator, J: IntoIterator, F: FnMut(&<I as IntoIterator>::Item, &<J as IntoIterator>::Item) -> T,
Available on crate feature dep_itertools only.
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].