bldc/tests/test_callcc_1.lisp

7 lines
85 B
Common Lisp

(define f (lambda (x) (+ x 1)))
(check (= (f (call-cc (lambda (k) (k 10)))) 11))