Created
January 30, 2015 01:55
-
-
Save pbostrom/18fbb4da879c49c0fe92 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
```clojure | |
(defn print-it [] | |
(println "don't print this")) | |
(defn dont-print [x] | |
(with-redefs [print-it (constantly nil)] | |
(print-it))) | |
(defn -main [] | |
(doall (pmap dont-print (range 1000))) | |
nil) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment