How to iterate over range with negative step?

loops, negative-number, scala

Solution

0 to (-10, -1)

or

0 to -10 by -1

Problem

Is there a way to do something like: ``` 0 to -10 map { i=> ... } ``` repl gives me: ``` scala.collection.immutable.IndexedSeq[Unit] = Vector() ```

Original source