gecco/example/fib
2024-06-10 22:14:40 +02:00

7 lines
94 B
Plaintext

let fib : Int -> Int = fix \f.\x.
if 2 > x
then 1
else f (x-1) + f (x-2)
in fib 10