Last active
September 2, 2018 14:59
-
-
Save mfikes/c16b0bae583127d6b84754c48106563c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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