9e03717deb
FossilOrigin-Name: 088675e452ed86a712563c8b2597fe4d47da59bdea0e40becdd1e028a84c47b0
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 + ;
|
|
~~~
|