Skip to content

Instantly share code, notes, and snippets.

@logosity
logosity / reload-all.clj
Created November 16, 2011 05:40
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))))