Mercurial > repos > rhope
comparison fib.rhope @ 86:a163250b8885
Update fib example to reflect language changes
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 30 Jul 2010 23:49:39 +0000 |
parents | 76568becd6d6 |
children |
comparison
equal
deleted
inserted
replaced
85:6d10b5b9ebc3 | 86:a163250b8885 |
---|---|
21 } | 21 } |
22 | 22 |
23 Main[args] | 23 Main[args] |
24 { | 24 { |
25 //Here we get the first command line argument and convert it to a number | 25 //Here we get the first command line argument and convert it to a number |
26 //Yes I realize this is incredibly ugly looking | 26 n <- Int32[[args]Index[1]] |
27 n <- <String@Whole Number[[args]Index[1]] | |
28 //Call our Fib worker and Print the result to the terminal | 27 //Call our Fib worker and Print the result to the terminal |
29 Print[Fib[n]] | 28 Print[Fib[n]] |
30 } | 29 } |