📅  最后修改于: 2022-03-11 14:53:32.875000             🧑  作者: Mango
val mylist = listOf("karate","taekwondo","sumo","boxing")
for ((index, value) in mylist.withIndex()) {
println("the element at $index is $value")
}