Function itertools::duplicates_impl::duplicates_by

source ยท
pub fn duplicates_by<I, Key, F>(iter: I, f: F) -> DuplicatesBy<I, Key, F>
where Key: Eq + Hash, F: FnMut(&I::Item) -> Key, I: Iterator,
Expand description

Create a new DuplicatesBy iterator.