core :: Iterator :: seq_uniq
Important: rely on ==.
==
assert [1,2,1,1,1,3,2].iterator.seq_uniq.to_a == [1,2,1,3,2]
# Filter: reject continuous sequences of duplicates # # Important: rely on `==`. # # assert [1,2,1,1,1,3,2].iterator.seq_uniq.to_a == [1,2,1,3,2] fun seq_uniq: Iterator[E] do return new PipeSeqUniq[E](self) end