itertools::grouping_map

Function new_map_for_grouping

Source
pub(crate) fn new_map_for_grouping<K, I: Iterator, F: FnMut(&I::Item) -> K>(
    iter: I,
    key_mapper: F,
) -> MapSpecialCase<I, GroupingMapFn<F>>