J
Joe Van Dyk
How can I neatly iterate from 0 to some number (either pos or neg)
while skipping over some number of numbers?
How's that for confusing?
So,
If the ending number is 550 and I want to skip by 100s, it would print
0, 100, 200, 300, 400, 500.
If the ending number is -552 and I want to skip by 100s, it would print
0, -100, -200, -300, -400, -500
There's nothing in the standard library that does this kind of thing, is there?
Thanks,
Joe
while skipping over some number of numbers?
How's that for confusing?
So,
If the ending number is 550 and I want to skip by 100s, it would print
0, 100, 200, 300, 400, 500.
If the ending number is -552 and I want to skip by 100s, it would print
0, -100, -200, -300, -400, -500
There's nothing in the standard library that does this kind of thing, is there?
Thanks,
Joe