For other Kotlin newbees like me who are coming here just wanting to know how to loop through a collection, I found this in the documentation:
val names = listOf("Anne", "Peter", "Jeff")
for (name in names) {
println(name)
}
For other Kotlin newbees like me who are coming here just wanting to know how to loop through a collection, I found this in the documentation:
val names = listOf("Anne", "Peter", "Jeff")
for (name in names) {
println(name)
}