yaakov
01/08/2018, 5:11 PMadam-mcneilly
01/08/2018, 5:20 PMfor ((index, value) in array.withIndex()) {
println("the element at $index is $value")
}
yaakov
01/08/2018, 5:39 PMadam-mcneilly
01/08/2018, 5:40 PMint
. https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-indexed-value/index.htmlyaakov
01/08/2018, 5:43 PM