848ba7303b
FossilOrigin-Name: b5feea667d30aac255d1cfca61fed355d438d2ce6021677f1e53af6302b15eee
10 lines
144 B
Text
10 lines
144 B
Text
# example|RecursiveFibonacci
|
|
|
|
~~~
|
|
:fib (n-m)
|
|
dup
|
|
[ n:zero? ] [ #1 eq? ] bi or
|
|
not 0; drop
|
|
[ n:dec fib ] sip
|
|
[ #2 - fib ] call + ;
|
|
~~~
|