Skip to content

Instantly share code, notes, and snippets.

@arohner arohner/gist:303136
Created Feb 13, 2010

Embed
What would you like to do?
(with-ns 'clojure.core
(defn require-short [ns]
(let [[whole base name] (re-find #"(.+)\.(.+)" (str ns))]
(require [(symbol whole) :as (symbol name)] :verbose))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.