elect
12/05/2017, 11:31 AM0 until x
is [0, x)
, but x downTo 0
is [x, 0]
dmitry.petrov
12/05/2017, 3:35 PM0.rangeTo(x)
(aka 0..x
) is [0, x].
Equivalent function with exclusive end would probably be called downUntil
(if introduced).
Note the difference: to = inclusive end, until = exclusive end.elect
12/05/2017, 4:11 PM..
operator