Created
May 1, 2011 19:12
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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