Skip to content

Instantly share code, notes, and snippets.

@oranenj
Created August 12, 2009 12:42
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 oranenj/166483 to your computer and use it in GitHub Desktop.
Save oranenj/166483 to your computer and use it in GitHub Desktop.
(defmacro expand [gen source]
(let [g (eval gen)
s (eval source)]
`(recur ~@(map g s))))
(macroexpand '(expand identity [1 2 3]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment