emit

inline fun emit(count: Int, emit: (n: Int, start: Int, count: Int, value: Int) -> Unit, gen: (index: Int) -> Int)

Processes a RLE sequence of count elements generated by the gen function, and calls emit function for every RLE segment