1
0
dust/examples/fibonacci.ds
2023-12-12 18:21:16 -05:00

10 lines
96 B
Plaintext

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