1
0

Rewrite example

This commit is contained in:
Jeff 2023-10-10 18:11:30 -04:00
parent f5b60ea2ff
commit 3fd03325c2

View File

@ -1,11 +1,9 @@
fibonacci = function <i> {
if i <= 1 {
fibonacci = function <number> {
if number <= 1 {
1
} else if i == 2 {
2
} else {
output (fibonacci - 1) + (fibonacci - 2)
(fibonacci number - 1) + (fibonacci number - 2)
}
}
(fibonacci 20)
(fibonacci 5)