在kotlin 的forEach 如何实现break 的效果? 官网文档的给出的代码是这样的fun foo() { run loop@{ listOf(1, 2, 3, 4, 5).forEach { if (it == 3) return@loop // 从 ...
確定! 回上一頁