Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Loops-Foreach/REBOL/loops-foreach.rebol
Normal file
13
Task/Loops-Foreach/REBOL/loops-foreach.rebol
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
REBOL [
|
||||
Title: "Loop/Foreach"
|
||||
URL: http://rosettacode.org/wiki/Loop/Foreach
|
||||
]
|
||||
|
||||
x: [Sork Gun Blues Neds Thirst Fright Catur]
|
||||
|
||||
foreach i x [prin rejoin [i "day "]] print ""
|
||||
|
||||
; REBOL also has the 'forall' construct, which provides the rest of
|
||||
; the list from the current position.
|
||||
|
||||
forall x [prin rejoin [x/1 "day "]] print ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue