aocla/examples/fib.aocla

17 lines
158 B
Text
Raw Permalink Normal View History

2023-01-30 22:33:15 +01:00
// Fibonacci example
[(n)
[$n 1 <=]
[
$n
]
[
$n 1 - fib
$n 2 - fib
+
] ifelse
] 'fib def
10 fib
printnl