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