Advertisement
Guest User

Untitled

a guest
Sep 10th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.27 KB | None | 0 0
  1.  ;macro
  2. (defmacro find-element-with-multiple-strategies (value l (&body strategies))
  3.        `(cond
  4.           ,@(find-element ,value ,l #'strategies)))
  5.  
  6. ;expansion
  7. (cond
  8.     (find-element 1 '(1 2 3) #'(lambda () '()))
  9.     (find-element 1 '(1 2 3) #'(lambda () t)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement