retroforth/example/IterativeFibonacci.retro
crc 848ba7303b use .retro instead of .forth in examples
FossilOrigin-Name: b5feea667d30aac255d1cfca61fed355d438d2ce6021677f1e53af6302b15eee
2019-08-20 18:46:40 +00:00

7 lines
96 B
Text

# example|IterativeFibonacci
~~~
:fib (n-m)
[ #0 #1 ] dip
[ over + swap ] times drop ;
~~~