langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
22
Task/Loops-Continue/REBOL/loops-continue.rebol
Normal file
22
Task/Loops-Continue/REBOL/loops-continue.rebol
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
REBOL [
|
||||
Title: "Loop/Continue"
|
||||
Author: oofoe
|
||||
Date: 2010-01-05
|
||||
URL: http://rosettacode.org/wiki/Loop/Continue
|
||||
]
|
||||
|
||||
; REBOL does not provide a 'continue' word for loop constructs,
|
||||
; however, you may not even miss it:
|
||||
|
||||
print "One liner (compare to ALGOL 68 solution):"
|
||||
repeat i 10 [prin rejoin [i either 0 = mod i 5 [crlf][", "]]]
|
||||
|
||||
print [crlf "Port of ADA solution:"]
|
||||
for i 1 10 1 [
|
||||
prin i
|
||||
either 0 = mod i 5 [
|
||||
prin newline
|
||||
][
|
||||
prin ", "
|
||||
]
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue