gecco/example/fib

7 lines
94 B
Plaintext
Raw Permalink Normal View History

2024-06-10 22:14:40 +02:00
let fib : Int -> Int = fix \f.\x.
if 2 > x
then 1
else f (x-1) + f (x-2)
in fib 10