Module rle

Module rle 

Source

Functions§

merge_value_runs
Merge two normalized (Range, T) run lists with “right wins” overwrite semantics.
rle_from_dense
Run-length encodes a dense sequence into a table of unique values and a run list, using a caller-provided equivalence predicate.
rle_from_value_runs
Converts normalized value-bearing runs into a deduplicated table and a run list, coalescing adjacent runs that carry the same value.