Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Loops-Continue/REBOL/loops-continue.rebol
Normal file
20
Task/Loops-Continue/REBOL/loops-continue.rebol
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
REBOL [
|
||||
Title: "Loop/Continue"
|
||||
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