"classical" for loops?

This issue has been tracked since 2022-07-26.

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 <start> and <step> could be different from 1)

repeat (<stop>-<start>+1) times index i
  set i to i+<start>-1


set i to <start>
repeat while (i <= <stop>)
  increment i

but both of them are error-prone and far from being readable.

Thus: what's the recommended alternative?

More Details About Repo
Owner Name bigskysoftware
Repo Name _hyperscript
Full Name bigskysoftware/_hyperscript
Language JavaScript
Created Date 2020-05-27
Updated Date 2022-11-25
Star Count 1265
Watcher Count 18
Fork Count 75
Issue Count 86


Issue Title Created Date Updated Date