Skip to content

Instantly share code, notes, and snippets.

@skrat
Created June 16, 2014 17:09
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 skrat/731f2e8e4bfa4e252c67 to your computer and use it in GitHub Desktop.
Save skrat/731f2e8e4bfa4e252c67 to your computer and use it in GitHub Desktop.
(defmacro joiner
[headers]
(let [extra [1 2 3]
joined (string/join "," (concat headers extra))]
`(some.one/doit ~joined)))
(defmacro joiner2
[headers]
(let [extra [1 2 3]]
`(some.one/doit (string/join "," (concat ~headers ~extra)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment