iterate a loop from a index in kotlin code example Example: for loop in kotlin with index collection.forEachIndexed { index, element -> // ... }