bldc/tests/test_lambda_7.lisp

7 lines
123 B
Common Lisp

(define f (lambda ()
(let ((a 1))
(lambda (x)
(+ x a)))))
(check (= ((f) 1) 2))