(defun fib (n &optional (curr 0) (next 1))
(if (zerop n)
(fib (1- n) next (+ curr next))))
(and for the TCO crowd... it's implementation dependent, so YMMV)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.