forEach

fun <T : RangeValue> RangeSet<T>.forEach(action: (Range<T>) -> Unit)

Iterate over all ranges in this set in order, calling action for each.