Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;macro
- (defmacro find-element-with-multiple-strategies (value l (&body strategies))
- `(cond
- ,@(find-element ,value ,l #'strategies)))
- ;expansion
- (cond
- (find-element 1 '(1 2 3) #'(lambda () '()))
- (find-element 1 '(1 2 3) #'(lambda () t)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement