pub fn duplicates<I>(iter: I) -> Duplicates<I>where I: Iterator, I::Item: Eq + Hash,
Create a new Duplicates iterator.
Duplicates