Skip to content

Instantly share code, notes, and snippets.

@AeroNotix
Created January 3, 2015 17:41
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 AeroNotix/8eca7a25a80c46c19dd9 to your computer and use it in GitHub Desktop.
Save AeroNotix/8eca7a25a80c46c19dd9 to your computer and use it in GitHub Desktop.
(def foo {:lol :foo})
(let [s 'foo]
(var-get (eval `(var ~s)))))
@AeroNotix
Copy link
Author

(let [s 'foo]
                 (when (symbol? s)
                   (remove nil? (map #(ns-resolve % s)
                                  (all-ns)))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment