Liking cljdoc? Tell your friends :D

cljs-tooling.util.misc


add-ns-macrosclj/s

(add-ns-macros sym)

Append $macros to the input symbol

Append $macros to the input symbol
sourceraw docstring

as-symclj/s

(as-sym x)
source

cond-letclj/smacro

(cond-let test-binding then-form & more)

An implementation of cond-let that is as similar as possible to if-let. Takes multiple test-binding/then-form pairs and evalutes the form if the binding is true. Also supports :else in the place of test-binding and always evaluates the form in that case.

Example: (cond-let [b (bar 1 2 3)] (println :bar b) [f (foo 3 4 5)] (println :foo f) [b (baz 6 7 8)] (println :baz b) :else (println :no-luck))

An implementation of cond-let that is as similar as possible to if-let. Takes multiple
test-binding/then-form pairs and evalutes the form if the binding is true. Also supports
:else in the place of test-binding and always evaluates the form in that case.

Example:
 (cond-let [b (bar 1 2 3)] (println :bar b)
           [f (foo 3 4 5)] (println :foo f)
           [b (baz 6 7 8)] (println :baz b)
           :else           (println :no-luck))
source (clj)source (cljs)raw docstring

dbgclj/smacro

(dbg x)
source (clj)source (cljs)

name-symclj/s

(name-sym sym)

Return the name of a fully qualified symbol if possible.

It leaves the symbol untouched if not.

Return the name of a fully qualified symbol if possible.

It leaves the symbol untouched if not.
sourceraw docstring

namespace-symclj/s

(namespace-sym sym)

Return the namespace of a fully qualified symbol if possible.

It leaves the symbol untouched if not.

Return the namespace of a fully qualified symbol if possible.

It leaves the symbol untouched if not.
sourceraw docstring

ns-obj?clj/s

(ns-obj? ns)

Return true if n is a namespace object

Return true if n is a namespace object
sourceraw docstring

remove-macrosclj/s

(remove-macros sym)

Remove $macros from the input symbol

Remove $macros from the input symbol
sourceraw docstring

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

× close