diff --git a/examples/fibonacci.ds b/examples/fibonacci.ds index fcb807f..5da7b17 100644 --- a/examples/fibonacci.ds +++ b/examples/fibonacci.ds @@ -1,9 +1,9 @@ -fibonacci = function { - if number <= 1 { +fib = function { + if i <= 1 { 1 } else { - (fibonacci number - 1) + (fibonacci number - 2) + (fib i - 1) + (fib i - 2) } } -(fibonacci 5) +(fib 5)