|
|
|
|
|
by eggy
2828 days ago
|
|
I tried the live repl and input the fibonacci example: > (fn fib [n]
(if (< n 2)
n
(+ (fib (- n 1)) (fib (- n 2)))))
which seemed to take, but then upon trying (print (fib 10))
it spit out the following: [string "return print(fib(10))"]:1: attempt to call a nil value (global 'fib')
Do I need to initialize fib before in the repl? |
|