直到功能

要建立不包含其 end 元素的範圍,可以使用 until 函式:

for (i in 1 until 10) { // i in [1, 10), 10 is excluded
println(i)
}