tseisel
05/17/2020, 7:07 PMfor (n in 0.0..1.0 step 0.1)
I know that floating point numbers are imprecise and such a for loop should be avoided. Is this why there is no such construct ? Or are there any alternatives ?natpryce
05/17/2020, 9:24 PM(0..10).map { i -> i / 10.0 }.forEach { f -> ... }