bldc/tests/test_fib_1.lisp

3 lines
91 B
Common Lisp

(let ((fib (lambda (n) (if (> 2 n) n (+ (fib (- n 1)) (fib (- n 2))))))) (= (fib 10) 55))