Skip to content

Instantly share code, notes, and snippets.

@martintrojer
Created April 25, 2012 10:40
Show Gist options
  • Select an option

  • Save martintrojer/2488894 to your computer and use it in GitHub Desktop.

Select an option

Save martintrojer/2488894 to your computer and use it in GitHub Desktop.
Tee combinator
;; 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