Category:Arturo: Difference between revisions

m
added better intro example
m (updated description)
m (added better intro example)
Line 16:
 
<lang rebol>
factorial: function [n][
print "Hello world!"
if? n > 0 -> n * factorial n-1
else -> 1
]
 
loop 1..1019 '[x []->
print ["Factorial of" x "=" factorial x]
if? even? x -> print [x "is even"]
</lang>
else -> print [x "is odd"]
</rebol>
 
===Implementation===
1,532

edits