mirror of
https://github.com/antirez/aocla
synced 2024-12-26 09:58:42 +01:00
16 lines
158 B
Text
16 lines
158 B
Text
// Fibonacci example
|
|
|
|
[(n)
|
|
[$n 1 <=]
|
|
[
|
|
$n
|
|
]
|
|
[
|
|
$n 1 - fib
|
|
$n 2 - fib
|
|
+
|
|
] ifelse
|
|
] 'fib def
|
|
|
|
10 fib
|
|
printnl
|