bldc/tests/test_match_0.lisp

7 lines
104 B
Common Lisp

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