Skip to content

Instantly share code, notes, and snippets.

@dcolish
Created February 27, 2013 16:12
Show Gist options
  • Save dcolish/5049108 to your computer and use it in GitHub Desktop.
Save dcolish/5049108 to your computer and use it in GitHub Desktop.
Attempting to unpack vectors args
(defmacro io-builder [klazz cube & ats]
`(reduce (fn [builder# x#] (doto builder# (.append x#)))
(new ~klazz ~cube)
[~@ats]))
(io-builder StringBuilder "first" ["one" "two"] ["three" "four"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment