Skip to content

clojure.core/ns-resolve

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 3 Runnable: 2
([ns sym] [ns env sym])

Returns the var or Class to which a symbol will be resolved in the namespace (unless found in the environment), else nil. Note that if the symbol is fully qualified, the var/Class to which it resolves need not be present in the namespace.

Examples

by jamesqiu on . May have evaluation errors.
by klauern on
by jimka2001 on

Note by steveminer

The appropriate value for the env arg is what you get from the implicit &env arg available to a macro.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.