Hi,
In progression doc there is a comment about negative step :
The
last
element of the progression is calculated this way:
- For a positive step: the maximum value not greater than the end value such that
(last - first) % step == 0
.- For a negative step: the minimum value not less than the end value such that
(last - first) % step == 0
.
Can you give an example for negative step in doc?
I have done this :
(10 downTo 2 step 3).toList()
but is it a negative step?