Created
November 16, 2011 05:40
-
-
Save logosity/1369373 to your computer and use it in GitHub Desktop.
reload code from within a repl
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
; here's how to reload a single namespace: | |
; (use 'some-namespace-name :reload) | |
; here's a function that will reload all that match "ns-part": | |
(defn reload-all [ns-part] | |
(map #(use % :reload) (filter #(re-find (re-pattern ns-part) (str%)) (loaded-libs)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment