Skip to content

Instantly share code, notes, and snippets.

@logosity
Created November 16, 2011 05:40
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 logosity/1369373 to your computer and use it in GitHub Desktop.
Save logosity/1369373 to your computer and use it in GitHub Desktop.
reload code from within a repl
; 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