Created
July 13, 2010 11:35
-
-
Save michalmarczyk/473759 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
(defn unuse [ns] | |
(doseq [[n v] (ns-refers *ns*)] | |
(if (= (.. v ns name) ns) | |
(ns-unmap *ns* n)))) | |
(defn reuse [ns] | |
(unuse ns) | |
(remove-ns ns) | |
(use :reload-all ns)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment