Is there a more concise way to specify this range ...
# getting-started
m
Is there a more concise way to specify this range
x..x+y
?
a
More consise as in not repeating
x
? I don't think so, unless you make your own fun
e
Copy code
repeat(y) {
}
m
Or maybe a way to shift the range
0..y
by
x
BTW
repeat(y+1)
would not give the absolute value needed
e
absolute value needed
what does it mean?
m
The values in the range
(x..x+y)
e
I think then
x..x+y
is the best expression you can hope for
m
Looks like it 🙂