Liking cljdoc? Tell your friends :D

clojure.repl

Utilities meant to be used interactively at the REPL

Utilities meant to be used interactively at the REPL
raw docstring

aproposclj

(apropos str-or-pattern)

Given a regular expression or stringable thing, return a seq of all public definitions in all currently-loaded namespaces that match the str-or-pattern.

Given a regular expression or stringable thing, return a seq of all
public definitions in all currently-loaded namespaces that match the
str-or-pattern.
raw docstring

demungeclj

(demunge fn-name)

Given a string representation of a fn class, as in a stack trace element, returns a readable version.

Given a string representation of a fn class,
as in a stack trace element, returns a readable version.
raw docstring

dircljmacro

(dir nsname)

Prints a sorted directory of public vars in a namespace

Prints a sorted directory of public vars in a namespace
raw docstring

dir-fnclj

(dir-fn ns)

Returns a sorted seq of symbols naming public vars in a namespace or namespace alias. Looks for aliases in ns

Returns a sorted seq of symbols naming public vars in
a namespace or namespace alias. Looks for aliases in *ns*
raw docstring

doccljmacro

(doc name)

Prints documentation for a var or special form given its name, or for a spec if given a keyword

Prints documentation for a var or special form given its name,
or for a spec if given a keyword
raw docstring

find-docclj

(find-doc re-string-or-pattern)

Prints documentation for any var whose documentation or name contains a match for re-string-or-pattern

Prints documentation for any var whose documentation or name
contains a match for re-string-or-pattern
raw docstring

pstclj

(pst)
(pst e-or-depth)
(pst e depth)

Prints a stack trace of the exception, to the depth requested. If none supplied, uses the root cause of the most recent repl exception (*e), and a depth of 12.

Prints a stack trace of the exception, to the depth requested. If none supplied, uses the root cause of the
most recent repl exception (*e), and a depth of 12.
raw docstring

root-causeclj

(root-cause t)

Returns the initial cause of an exception or error by peeling off all of its wrappers

Returns the initial cause of an exception or error by peeling off all of
its wrappers
raw docstring

set-break-handler!clj

(set-break-handler!)
(set-break-handler! f)

Register INT signal handler. After calling this, Ctrl-C will cause the given function f to be called with a single argument, the signal. Uses thread-stopper if no function given.

Register INT signal handler.  After calling this, Ctrl-C will cause
the given function f to be called with a single argument, the signal.
Uses thread-stopper if no function given.
raw docstring

sourcecljmacro

(source n)

Prints the source code for the given symbol, if it can find it. This requires that the symbol resolve to a Var defined in a namespace for which the .clj is in the classpath.

Example: (source filter)

Prints the source code for the given symbol, if it can find it.
This requires that the symbol resolve to a Var defined in a
namespace for which the .clj is in the classpath.

Example: (source filter)
raw docstring

source-fnclj

(source-fn x)

Returns a string of the source code for the given symbol, if it can find it. This requires that the symbol resolve to a Var defined in a namespace for which the .clj is in the classpath. Returns nil if it can't find the source. For most REPL usage, 'source' is more convenient.

Example: (source-fn 'filter)

Returns a string of the source code for the given symbol, if it can
find it.  This requires that the symbol resolve to a Var defined in
a namespace for which the .clj is in the classpath.  Returns nil if
it can't find the source.  For most REPL usage, 'source' is more
convenient.

Example: (source-fn 'filter)
raw docstring

stack-element-strclj

(stack-element-str el)

Returns a (possibly unmunged) string representation of a StackTraceElement

Returns a (possibly unmunged) string representation of a StackTraceElement
raw docstring

thread-stopperclj

(thread-stopper)
(thread-stopper thread)

Returns a function that takes one arg and uses that as an exception message to stop the given thread. Defaults to the current thread

Returns a function that takes one arg and uses that as an exception message
to stop the given thread.  Defaults to the current thread
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close