lang_in_20/test.scm

8 lines
93 B
Scheme
Raw Normal View History

(define fact
(lambda (x)
(if (== x 1) 1
(* x (fact (- x 1))))))
(fact 6)