Skip to content

Instantly share code, notes, and snippets.

@pbostrom
Created January 30, 2015 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbostrom/18fbb4da879c49c0fe92 to your computer and use it in GitHub Desktop.
Save pbostrom/18fbb4da879c49c0fe92 to your computer and use it in GitHub Desktop.
```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