1
0
dust/examples/fibonacci.ds

10 lines
97 B
Plaintext

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