Download examples/forth/fib.fs from Snapkitty/ai-free: direct link, hf CLI and curl.
- Browser
- Download file 140 Bytes
-
https://huggingface.co/Snapkitty/ai-free/resolve/main/examples/forth/fib.fs
- Command line
-
hf download hf://Snapkitty/ai-free/examples/forth/fib.fs
-
curl -L -o fib.fs https://huggingface.co/Snapkitty/ai-free/resolve/main/examples/forth/fib.fs
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 | |