Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. (defun find-all (item sequence &rest keyword-args
  2. &key (test #'eql) test-not &allow-other-keys)
  3. "Find all those elements of sequence that match item,
  4. according to the keywords. Doesn't alter sequence."
  5. (if test-not
  6. (apply #'remove item sequence
  7. :test-not (complement test-not) keyword-args)
  8. (apply #'remove item sequence
  9. :test (complement test) keyword-args)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement