1
0
dust/examples/fibonacci.ds
2024-01-28 17:46:15 -05:00

10 lines
115 B
Plaintext

fib = (i <int>, fib <(int) -> int>) <int> {
if i <= 1 {
1
} else {
fib(i - 1) + fib(i - 2)
}
}
fib(8, fib)