calcNext

fun calcNext(ranges: Iterable<IntRange>): Int
fun calcNext(range: IntRange): Int