|
|
|
|
|
by draegtun
1337 days ago
|
|
Arturo was influenced by Rebol which comes with LOOP - http://www.rebol.com/r3/docs/functions/loop.html However there are some differences... loop 10 [
print "hello" ;; prints "hello" 10 times
]
repeat n 10 [
print n ;; prints 1 to 10
]
forever [
print "hello" ;; print "hello" forever!
]
|
|
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/