home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d0xx / d003 / xlisp.lha / xlisp / fact.lsp next >
Encoding:
Lisp/Scheme  |  1986-01-04  |  84 b   |  4 lines

  1. (defun factorial (n)
  2.        (cond ((= n 1) 1)
  3.          (t (* n (factorial (- n 1))))))
  4.