Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. (defmacro subs (old new &rest to-subs)
  2. `(loop for i in ,@to-subs
  3. collect (if (equal i ',old)
  4. (setf i ',new)
  5. i )))
  6. turns (print 'x) into (print 'y)
  7. with
  8. (subs 'x 'y '(print 'x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement