dknapp
07/26/2018, 2:14 PMfor (i in 0 until someValue)? repeat(someValue)?orangy
i is an index into something, then repeat doesn’t convey what’s important. If you just need to do something someValue times, then yes, repeat is better.dknapp
07/26/2018, 2:22 PMdknapp
07/26/2018, 2:22 PMorangy
someValue is someCollection.size for example, it could be better to iterate on someCollection.indicieskarelpeeters
07/26/2018, 6:46 PMrepeat heavily suggests the code in the block does the same every time.karelpeeters
07/26/2018, 6:46 PM