Lyricdev
GitHub

struct DedupIter

pub struct DedupIter<I :: [Iterator], E :: [Error] = never> :: [Iterator]

Conforms to Iterator, Closeable.

Yields the values of an iterator with each run of consecutive values for which same holds given once; made by it.dedupBy(same) and it.dedup().

Each value is compared with the last one yielded; the first of a run is the one kept.

Methods

pub mut fn next(): ?I.Item throws Join<I.Error, E>
fn close(): void throws I.Error