Skip to content

Instantly share code, notes, and snippets.

@sordina
Created February 17, 2014 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sordina/9046686 to your computer and use it in GitHub Desktop.
Save sordina/9046686 to your computer and use it in GitHub Desktop.
(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