Liking cljdoc? Tell your friends :D

com.gfredericks.repl

My repl utilities.

My repl utilities.
raw docstring

bashclj

(bash cmd)
(bash cmd opts)
source

commentcljmacro

(comment & args)

Like clojure.core/comment, but allows uncommenting top-level forms with ~, e.g.:

(repl/comment (don't do this) (or this) ~(but do this) ~(and this) (but not this))

Like clojure.core/comment, but allows uncommenting top-level
forms with ~, e.g.:

(repl/comment
  (don't do this)
  (or this)
  ~(but do this)
  ~(and this)
  (but not this))
sourceraw docstring

defcljmacro

(def var-name val)

A variant of def that makes the definition in whatever namespace this macro itself is a part of.

Intended to be used with tools like lein-shorthand or dot-slash-2, where this macro can be aliased as ./def and then (./def x 42) would result in the var #'./x being created.

Alternately, (./def foo/x 42) will define x in the foo namespace, unless foo is an alias for a longer namespace in which case it will use that.

A variant of def that makes the definition in whatever namespace
this macro itself is a part of.

Intended to be used with tools like lein-shorthand or dot-slash-2,
where this macro can be aliased as ./def and then (./def x 42)
would result in the var #'./x being created.

Alternately, (./def foo/x 42) will define x in the foo namespace,
unless foo is an alias for a longer namespace in which case it will
use that.
sourceraw docstring

forevercljmacro

(forever & body)

Executes body repeatedly, watching for thread interrupts.

Executes body repeatedly, watching for thread interrupts.
sourceraw docstring

localscljmacro

(locals)
source

ppclj

(pp)
(pp x)

Combines functionality of clojure.pprint/pprint and clojure.pprint/pp, but also canonizes the object before printing.

Combines functionality of clojure.pprint/pprint and clojure.pprint/pp,
but also canonizes the object before printing.
sourceraw docstring

run-all-testsclj

(run-all-tests)

Like clojure.test/run-all-tests, but also requires namespaces first.

Like clojure.test/run-all-tests, but also requires namespaces first.
sourceraw docstring

throw-localscljmacro

(throw-locals)
(throw-locals msg)
source

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

× close