flup/test-inputs/fibonacci.flup

7 lines
123 B
Text
Raw Normal View History

2024-10-08 22:48:46 +02:00
fib: int a -> int
| a 0 == -> 1
| a 1 == -> 1
| 1 1 == -> a 1 - fib a 2 - fib + duplicate println
;
10 fib