Created
February 17, 2014 08:13
-
-
Save sordina/9046686 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def asdf ["a" "b" "c"]) | |
(defn baz [x] | |
`(def ~(symbol (str x x)) ~x)) | |
(defmacro foo [l] | |
`(do ~@(map baz (eval l)))) | |
(foo asdf) | |
(prn aa bb cc) | |
(macroexpand '(foo asdf)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment