Posted By

iTony on 01/27/11


Tagged


Versions (?)

Shred bindings of ns


 / Published in: Clojure
 

URL: http://www.learningclojure.com/2011/01/cleaning-old-definitions-from-repl.html

  1. (defn shred-user
  2. ([] (shred-user 'user))
  3. ([lns]
  4. (doseq [s (filter (complement #{'shred-user})
  5. (map first (ns-interns lns)))]
  6. (ns-unmap lns s))))

Report this snippet  

You need to login to post a comment.