I\'ve written a Lisp function like this:
(defun power (base exponent) (if (= exponent 0) 1 (* base (power (- exponent 1)))))
Wh
Lisp comes with the function expt, so no need to define your own.
(Unless this is an exercise or homework, in which case you might want to look at more efficient methods, such as exponentiation by squaring.)