Check out this page . for example
(ns-map *ns*)
will provide you with a map of bindings in the current namespace. You can check this card to decide if your symbol is key in the card,
(defn resolvable? [sym]
(contains? (ns-map *ns*) sym))
I don’t know if this is the canonical way.
Jonas source
share