Function kmerge
pub fn kmerge<I>(
iterable: I,
) -> KMergeBy<<<I as IntoIterator>::Item as IntoIterator>::IntoIter, KMergeByLt> ⓘwhere
I: IntoIterator,
<I as IntoIterator>::Item: IntoIterator,
<<I as IntoIterator>::Item as IntoIterator>::Item: PartialOrd,
Available on crate feature
dep_itertools
only.Expand description
Create an iterator that merges elements of the contained iterators using the ordering function.
IntoIterator
enabled version of Itertools::kmerge
.
use itertools::kmerge;
for elt in kmerge(vec![vec![0, 2, 4], vec![1, 3, 5], vec![6, 7]]) {
/* loop body */
}