(add-ns-macros sym)Append $macros to the input symbol
Append $macros to the input symbol
(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))(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.
(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.
(ns-obj? ns)Return true if n is a namespace object
Return true if n is a namespace object
(remove-macros sym)Remove $macros from the input symbol
Remove $macros from the input symbol
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |