home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / prog2 / xlispsrc.lzh / XLISPLSP.ZIP / FACT.LSP next >
Encoding:
Lisp/Scheme  |  1988-02-12  |  77 b   |  4 lines

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