我想要 1 到 10 的 setList,但“currentNumber”(列表项)不能下一个!
var numList = mutableSetOf(1)
for (currentNumber in numList) {
var temp = currentNumber
temp++
numList.add(temp)
if (currentNumber == 10)
break
}
println(" final List 0 to 10 $numList")