Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Arturo Programming Language. Parent comment
As for looping...
loop 1..10 'x -> print x ; prints 1 to 10 loop.with:'i ["one" "two"] 'x -> print [i "=>" x] ; 0 => one, 1 => two do.times: 10 -> print "hello" ; print "hello" 10 times loop.forever 1..10 'x -> print x ; prints 1 to 10, forever loop 1..10 [x y]-> print [x y] ; print 0 1, 2 3, 4 5,...
https://arturo-lang.io/documentation/library/iterators/
There are no comments on this comment yet.
As for looping...
The same works for pretty much every function in the Iterators module: map, select, filter, etc :)https://arturo-lang.io/documentation/library/iterators/