Mercurial > repos > tabletprog
view samples/fib.tp @ 71:01b6f8204cdf
added 'not' message to 'true' and 'false' modules
author | William Morgan <bill@mrgn.org> |
---|---|
date | Sat, 14 Jul 2012 20:05:51 -0700 |
parents | 3a169ebb3224 |
children |
line wrap: on
line source
#{ fib <- :n { if: n < 2 { 1 } else: { (fib: n-1) + (fib: n-2) } } main <- { print: (string: (fib: 30)) . "\n" } }