collection.forEachIndexed { index, element -> // ... }
//iterating from one to ten Kotlin Example for (i in 1..10) print(i)