Skip to content

Instantly share code, notes, and snippets.

@mfikes
Last active September 2, 2018 14:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfikes/c16b0bae583127d6b84754c48106563c to your computer and use it in GitHub Desktop.
Save mfikes/c16b0bae583127d6b84754c48106563c to your computer and use it in GitHub Desktop.
(defn include? [var]
(-> var meta :include))
(defn build-map [sym->var]
(->> sym->var
(keep (fn [[sym var]]
(when (include? var)
var])))
(into {})))
(def my-map (build-map (ns-publics 'my-namespace.core)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment