org.hammerlab.iterator
Run-length encode an input iterator, replacing contiguous runs of identical elements with pairs consisting of the first element in the run and the number of elements observed.
See RunLengthIteratorTest for examples.
Run-length encode an input iterator, replacing contiguous runs of identical elements with pairs consisting of the first element in the run and the number of elements observed.
See RunLengthIteratorTest for examples.