Skip to content

Instantly share code, notes, and snippets.

@noisesmith
Created December 24, 2015 23:52
Show Gist options
  • Select an option

  • Save noisesmith/8c7ebf4265765115e4d2 to your computer and use it in GitHub Desktop.

Select an option

Save noisesmith/8c7ebf4265765115e4d2 to your computer and use it in GitHub Desktop.
kingfisher.core=> (alter-var-root #'in-ns (fn [f] (fn [& args] (println "switching ns!") (apply f args))))
#object[kingfisher.core$eval31119$fn__31120$fn__31121 0x16c9cab3 "kingfisher.core$eval31119$fn__31120$fn__31121@16c9cab3"]
kingfisher.core=> (in-ns 'user)
switching ns!
#object[clojure.lang.Namespace 0x6406ea3c "user"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment