Files
HAL/example/fact.lisp
2021-11-09 11:38:33 +01:00

4 lines
79 B
Common Lisp

(define (fact x)
(cond ((eq? x 1) 1)
(#t (* x (fact (- x 1))))))