Returns the var or Class to which a symbol will be resolved in the
namespace, else nil. Note that if the symbol is fully qualified,
the var/Class to which it resolves need not be present in the
namespace.
(defn ns-resolve
"Returns the var or Class to which a symbol will be resolved in the
namespace, else nil. Note that if the symbol is fully qualified,
the var/Class to which it resolves need not be present in the
namespace."
{:added "1.0"}
[ns sym]
(clojure.lang.Compiler/maybeResolveIn (the-ns ns) sym))
Comments top
No comments for ns-resolve. Log in to add a comment.