ClojureDocs

Nav

Namespaces

doc

clojure.repl

Available since 1.0
  • (doc name)
Prints documentation for a var or special form given its name,
 or for a spec if given a keyword
2 Examples
=> (doc map)
;; prints in console:
-------------------------
clojure.core/map
([f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls])
  Returns a lazy sequence consisting of the result of applying f to the
  set of first items of each coll, followed by applying f to the set
  of second items in each coll, until any one of the colls is
  exhausted.  Any remaining items in other colls are ignored. Function
  f should accept number-of-colls arguments.
user> (doc clojure.core)
-------------------------
clojure.core
  Fundamental library of the Clojure language
See Also

Prints the source code for the given symbol, if it can find it. This requires that the symbol reso...

Prints a sorted directory of public vars in a namespace

Given a regular expression or stringable thing, return a seq of all public definitions in all curren...

1 Note
    By , created 12.5 years ago

    Note that the clojure.repl namespace which contains doc is not loaded by default in Emacs' SLIME mode, because SLIME provides its own doc function via C-c C-d d.