Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
25
Task/Repeat/Arturo/repeat.arturo
Normal file
25
Task/Repeat/Arturo/repeat.arturo
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
print "---------------------------"
|
||||
print "As a loop"
|
||||
print "---------------------------"
|
||||
loop 4 'x ->
|
||||
print "Example 1"
|
||||
|
||||
repeatFunc: function [f,times][
|
||||
loop times 'x ->
|
||||
do f
|
||||
]
|
||||
|
||||
print "---------------------------"
|
||||
print "With a block param"
|
||||
print "---------------------------"
|
||||
repeatFunc [print "Example 2"] 4
|
||||
|
||||
repeatFunc: function [f,times][
|
||||
loop times 'x ->
|
||||
f
|
||||
]
|
||||
|
||||
print "---------------------------"
|
||||
print "With a function param"
|
||||
print "---------------------------"
|
||||
repeatFunc $[][print "Example 3"] 4
|
||||
Loading…
Add table
Add a link
Reference in a new issue