In Swift you can ignore the loop constant by using _ like so:
for _ in 0...10 {
//loop logic here
}
Is there an equivalent in Kotlin?
Kotlin also knows the convention of naming lambda parameters "_" in order to indicate they are unused. The following looks very similar to your example:
(1..10).forEach { _ ->
//loop logic here
}