Ben
val ranges = listOf(IntRange(1, 10), IntRange(9, 12)) ranges.flatten().distinct() [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]