Answers for "indices in kotlin"

0

kotlin indices

val collection = listOf('a', 'b', 'c')
println(collection.indices) // 0..2

for(i in collection.indices) {
println(i)
}
Posted by: Guest on September-20-2021

Browse Popular Code Answers by Language