lang_in_20/test.scm

8 lines
93 B
Scheme

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