📅  最后修改于: 2022-03-11 14:55:24.784000             🧑  作者: Mango
代码示例2
fun foo(ints: List) {
ints.forEach {
if (it == 0) return@forEach // implicit label for lambda passed to forEach
print(it)
}
}