Skip to main content

Namespaces

  • alias

    Add an alias in the current namespace to another namespace. Arguments are two symbols: the alias to be used, and the...

  • all-ns

    Returns a sequence of all namespaces.

  • compile

    Compiles the namespace named by the symbol lib into a set of classfiles. The source for the lib must be in a proper ...

  • create-ns

    Create a new namespace named by the symbol if one doesn't already exist, returns it or the already-existing namespace ...

  • find-keyword

    Returns a Keyword with the given namespace and name if one already exists. This function will not intern a new keywor...

  • find-var

    Returns the global var named by the namespace-qualified symbol, or nil if no var with that name.

  • import

    import-list => (package-symbol class-name-symbols*) For each name in class-name-symbols, adds a mapping from name to ...

  • in-ns

    Sets *ns* to the namespace named by the symbol, creating it if needed.

  • load

    Loads Clojure code from resources in classpath. A path is interpreted as classpath-relative if it begins with a slash ...

  • load-file

    Sequentially read and evaluate the set of forms contained in the file.

  • load-reader

    Sequentially read and evaluate the set of forms contained in the stream/file

  • load-string

    Sequentially read and evaluate the set of forms contained in the string

  • loaded-libs

    Returns a sorted set of symbols naming the currently loaded libs

  • namespace

    Returns the namespace String of a symbol or keyword, or nil if not present.

  • namespace-munge

    Convert a Clojure namespace name to a legal Java package name.

  • ns

    Sets *ns* to the namespace named by name (unevaluated), creating it if needed. references can be zero or more of: (:r...

  • ns-aliases

    Returns a map of the aliases for the namespace.

  • ns-imports

    Returns a map of the import mappings for the namespace.

  • ns-interns

    Returns a map of the intern mappings for the namespace.

  • ns-map

    Returns a map of all the mappings for the namespace.

  • ns-name

    Returns the name of the namespace, a symbol.

  • ns-publics

    Returns a map of the public intern mappings for the namespace.

  • ns-refers

    Returns a map of the refer mappings for the namespace.

  • ns-unalias

    Removes the alias for the symbol from the namespace.

  • ns-unmap

    Removes the mappings for the symbol from the namespace.

  • refer

    refers to all public vars of ns, subject to filters. filters can include at most one each of: :exclude list-of-symb...

  • refer-clojure

    Same as (refer 'clojure.core <filters>)

  • remove-ns

    Removes the namespace named by the symbol. Use with caution. Cannot be used to remove the clojure namespace.

  • require

    Loads libs, skipping any that are already loaded. Each argument is either a libspec that identifies a lib, a prefix li...

  • use

    Like 'require, but also refers to each lib's namespace using clojure.core/refer. Use :use in the ns macro in preferenc...

  • find-ns

    Returns the namespace named by the symbol or nil if it doesn't exist.

  • ns-resolve

    Returns the var or Class to which a symbol will be resolved in the namespace (unless found in the environment), else n...

  • resolve

    same as (ns-resolve *ns* symbol) or (ns-resolve *ns* &env symbol)

  • the-ns

    If passed a namespace, returns it. Else, when passed a symbol, returns the namespace named by it, throwing an exceptio...