bldc/tests/test_mutual_rec_1.lisp

4 lines
117 B
Common Lisp

(let ((f (lambda (x) (if (= x 0) 0 (g (- x 1)))))
(g (lambda (x) (if (= x 0) 1 (f (- x 1))))))
(= (f 10) 0))