1
0
dust/examples/fibonacci.ds

12 lines
142 B
Plaintext
Raw Normal View History

2023-10-09 19:54:47 +00:00
fibonacci = function <i> {
if i <= 1 {
1
} else if i == 2 {
2
} else {
output (fibonacci - 1) + (fibonacci - 2)
}
}
(fibonacci 20)