bldc/tests/test_match_1.lisp

7 lines
104 B
Common Lisp

(define f (lambda (x)
(match x ( (apa (? x)) (+ x 10))
( (? x) 10))))
(= (f '(foo 3)) 10)