one thing that I think may be source of bug about ...
# stdlib
e
one thing that I think may be source of bug about ranges is that
0 until x
is
[0, x)
, but
x downTo 0
is
[x, 0]
d
0.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.
☝️ 1
e
yeah, it makes sense, I forgot the name of the
..
operator