📜  foreach 索引 kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:32.334000             🧑  作者: Mango

代码示例1
for ((index, value) in array.withIndex()) {
    println("the element at $index is $value")
}