Created
December 28, 2016 06:44
-
-
Save buitcj/5b2b502c10912c5d1492c5ebee575732 to your computer and use it in GitHub Desktop.
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 compose [& fs] | |
(when-let [[f & fs] (seq (reverse fs))] | |
(reduce #(fn [& args] (%2 (apply % args))) f fs))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment