Question: 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?

Answer: 
You can also use [repeat()](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/repeat.html) function:

```
repeat(10){
  //loop logic here
}

```
You can just use a forEach loop, and don't use `it` inside the closure:

```
(1..10).forEach {
    println("hello")
}

```