Closed danilopedraza closed 1 month ago
I think it would be nice if ranges went in both ways: from left to right or from right to left, depending on its ends. If a < b
:
a..a
: nothing to iterate overa..b
: a standard range: a, a + 1. ..., b - 1
b..a
: an inverted range: b, b - 1, ... a
(it could be a + 1
for symmetry, but I like it more this way) Right now this is enough.
I want a special syntax to specify a range. Something like this:
Notice that
a..b
includesa
and excludesb
.