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,
Create a new DuplicatesBy iterator.
DuplicatesBy