Function elipdotter::set::deduplicate
source · pub fn deduplicate<T: PartialEq, I: Iterator<Item = T>>(
iter: I
) -> Deduplicate<T, I, fn(_: T, _: T) -> T> ⓘ
Expand description
Removes consecutive duplicate items.
This works best for sorted iterators (e.g. std::collections::BTreeMap::iter
) as they
always have any duplicate items right after each other.
All the iterators used within elipdotter are sorted.