I must have missed s.th. - or I am blind - but
how do I implement "classical" for-loops such as
for i from <start> to <stop> by <step>
for i from 1000 to 1000000
I know that there is
repeat for i in [...]
but I really can't create a literal list with thousands or even more elements - and creating it programmatically would, again, require a classical for-loop...
Right now, I know of two approaches (not taking into account that
<stop> could be less than
<step> could be different from 1)
repeat (<stop>-<start>+1) times index i set i to i+<start>-1 ... end
set i to <start> repeat while (i <= <stop>) ... increment i end
but both of them are error-prone and far from being readable.
Thus: what's the recommended alternative?
|Issue Title||Created Date||Updated Date|