ai-free / examples /forth /fib.fs
SNAPKITTYWEST's picture
October 2026 main drop: mirror from GitHub
f5deffb verified
Raw History Blame Contribute Delete
140 Bytes
\ Fibonacci, doubly recursive. Halts with 610 on the stack.
: FIB ( n -- fib[n] ) DUP 2 < IF ELSE DUP 1 - FIB SWAP 2 - FIB + THEN ;
15 FIB