itertools::unique_impl

Function unique_by

Source
pub fn unique_by<I, V, F>(iter: I, f: F) -> UniqueBy<I, V, F> 
where V: Eq + Hash, F: FnMut(&I::Item) -> V, I: Iterator,
Expand description

Create a new UniqueBy iterator.