forEach { if (it == 3) return@forEach // 局部返回到该lambda 表达式的调用者,即forEach 循环print(it) } print(" done with implicit label") } //sampleEnd fun ...
確定! 回上一頁