My repl utilities.
My repl utilities.
(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))
(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.
(forever & body)
Executes body repeatedly, watching for thread interrupts.
Executes body repeatedly, watching for thread interrupts.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close