Category:Arturo: Difference between revisions
Content added Content deleted
m (add link to unimplemented tasks) |
Drkameleon (talk | contribs) m (minor edit) |
||
Line 15: | Line 15: | ||
* No reserved words or keywords - look for them as hard as you can; there are absolutely none |
* No reserved words or keywords - look for them as hard as you can; there are absolutely none |
||
<syntaxhighlight lang="arturo"> |
|||
<lang rebol> |
|||
factorial: function [n][ |
factorial: function [n][ |
||
if? n > 0 -> n * factorial n-1 |
if? n > 0 -> n * factorial n-1 |
||
Line 23: | Line 23: | ||
loop 1..19 [x]-> |
loop 1..19 [x]-> |
||
print ["Factorial of" x "=" factorial x] |
print ["Factorial of" x "=" factorial x] |
||
</syntaxhighlight> |
|||
</lang> |
|||
===Implementation=== |
===Implementation=== |