Skip to content

Instantly share code, notes, and snippets.

@hans
Created May 1, 2011 19:12
Show Gist options
  • Save hans/950757 to your computer and use it in GitHub Desktop.
Save hans/950757 to your computer and use it in GitHub Desktop.
a higher-order function which flips the order of the arguments of an input function
(fn [thefn]
(fn [& args]
(apply thefn (reverse args))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment