Generates a new RLE or reuses out, from a sequence of count items, generated by the gen function. Emitted value can be filtered with the filter function.
Generates a RLE sequence based on the data in the segment start and end. When providing out, that RLE is reused.