API for ns-utils
- ()
by Stephen C. Gilardi
clojure-contrib is now deprecated
clojure-contrib is no longer being developed or maintained.
Rather than a single, monolithic, contributions library, Clojure now has
a set of separate libraries for each unit of functionality. The libraries
are in the Clojure GitHub organization at
https://github.com/clojure.
API documentation of the libraries can be found at
https://clojure.github.io.
If you're looking for a specific function or namespace from the old
clojure-contrib, see
"Where Did Clojure.Contrib Go".
Full namespace name:
clojure.contrib.ns-utils
Overview
Namespace utilities
get-ns returns the namespace named by a symbol or throws
if the namespace does not exist
ns-vars returns a sorted seq of symbols naming public vars
in a namespace
print-docs prints documentation for the public vars in a
namespace
immigrate Create a public var in this namespace for each
public var in the namespaces named by ns-names.
From James Reeves
vars returns a sorted seq of symbols naming public vars
in a namespace (macro)
docs prints documentation for the public vars in a
namespace (macro)
Public Variables and Functions
dir
macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (dir nsname)
Prints a sorted directory of public vars in a namespace
Deprecated since clojure-contrib version 1.2
Source
docs
macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (docs nsname)
Prints documentation for the public vars in a namespace
Source
get-ns
function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (get-ns ns-sym)
Returns the namespace named by ns-sym or throws if the
namespace does not exist
Source
immigrate
function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (immigrate & ns-names)
Create a public var in this namespace for each public var in the
namespaces named by ns-names. The created vars have the same name, root
binding, and metadata as the original except that their :ns metadata
value is this namespace.
Source
ns-vars
function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (ns-vars ns)
Returns a sorted seq of symbols naming public vars in
a namespace
Source
print-dir
function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (print-dir ns)
Prints a sorted directory of public vars in a namespace
Deprecated since clojure-contrib version 1.2
Source
print-docs
function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (print-docs ns)
Prints documentation for the public vars in a namespace
Source
vars
macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (vars nsname)
Returns a sorted seq of symbols naming public vars in
a namespace
Source