flup/test-inputs/efficient-fibonacci.flup

9 lines
198 B
Text

fib: int n -> int
| 1 -> fib: int a int b int iterations -> int
| iterations 0 == -> a b +
| 1 -> a b + println b a b + iterations 1 - fib
;
0 1 n fib
;
50 fib println