fibonacci code

This commit is contained in:
David 2021-02-22 16:55:33 -05:00
parent 5048b445ae
commit 583fa79985

View File

@ -44,6 +44,16 @@ ok
📉 ok
```
Here's a Fibonacci implementation:
```
> : FIB 2DUP + ;
ok
> : FIBN 0 1 ROT 1 DO FIB ROT DROP LOOP SWAP DROP ;
ok
> 10 FIBN .
55 ok
```
And, of course, it knows how to quit:
```