Skip to content

Instantly share code, notes, and snippets.

@amalloy
Created March 30, 2011 17:54
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 amalloy/d5f584322d133395bcf9 to your computer and use it in GitHub Desktop.
Save amalloy/d5f584322d133395bcf9 to your computer and use it in GitHub Desktop.
(defmacro ->f [f & [first & args]]
(reduce (partial list* f)
(list* f first)
(map #(if (seq? %) % (list %))
args)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment