langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
15
Task/Loops-Foreach/REBOL/loops-foreach.rebol
Normal file
15
Task/Loops-Foreach/REBOL/loops-foreach.rebol
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
REBOL [
|
||||
Title: "Loop/Foreach"
|
||||
Author: oofoe
|
||||
Date: 2009-12-19
|
||||
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