Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defmacro subs (old new &rest to-subs)
- `(loop for i in ,@to-subs
- collect (if (equal i ',old)
- (setf i ',new)
- i )))
- turns (print 'x) into (print 'y)
- with
- (subs 'x 'y '(print 'x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement