I define a function in LISP, and it defines correctly. But whenever I try to call it, I get an error saying "The variable FACTORIAL is unbound."
I have tried this on both OS X and Windows 7, on LispWorks and Allegro. The function is -
(defun factorial (x)
(if (= 1 x) 1
(* x factorial (- 1 x))))
Any help is appreciated.