Created
April 25, 2012 10:40
-
-
Save martintrojer/2488894 to your computer and use it in GitHub Desktop.
Tee combinator
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
| ;; olabini: Am I blind. Clojure doesn't have a tee-style combinator that allow you to chain side effecting functions without threading values? | |
| (defn tee [& fs] (comp last (apply juxt fs))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment