forEach { if (it == 3) return // 非局部直接返回到foo() 的调用者 print(it) } println("this point is unreachable") }. 这个return 表达式从最直接包围它的函数即 ...
確定! 回上一頁