Liking cljdoc? Tell your friends :D

hansel.utils


clojure-form-source-hashclj/s

(clojure-form-source-hash s)

Hash a clojure form string into a 32 bit num. Meant to be called with printed representations of a form, or a form source read from a file.

Hash a clojure form string into a 32 bit num.
Meant to be called with printed representations of a form,
or a form source read from a file.
raw docstring

colored-stringclj/s≠

clj
(colored-string s c)
cljs
(colored-string _ _)

formatclj/s

(format & args)

get-form-at-coordclj/s

(get-form-at-coord form coord)

lazy-bindingcljmacro

(lazy-binding bindings & body)

Like clojure.core/binding but instead of a vec of vars it accepts a vec of symbols, and will resolve the vars with requiring-resolve

Like clojure.core/binding but instead of a vec of vars it accepts a vec
of symbols, and will resolve the vars with requiring-resolve
raw docstring

logclj/s

(log & msgs)

log-errorclj/s

(log-error msg)
(log-error msg e)

merge-metaclj/s

(merge-meta obj & metamaps)

Non-throwing version of (vary-meta obj merge metamap-1 metamap-2 ...). Like vary-meta, this only applies to immutable objects. For instance, this function does nothing on atoms, because the metadata of an atom is part of the atom itself and can only be changed destructively.

Non-throwing version of (vary-meta obj merge metamap-1 metamap-2 ...).
Like `vary-meta`, this only applies to immutable objects. For
instance, this function does nothing on atoms, because the metadata
of an `atom` is part of the atom itself and can only be changed
destructively.
raw docstring

obj-coordclj/s

(obj-coord kind obj)

out-print-writerclj


println-errclj

(println-err & args)

tag-form-recursivelyclj/s

(tag-form-recursively form key)

Recursively add coordinates to all forms

Recursively add coordinates to all forms
raw docstring

walk-code-formclj/s

(walk-code-form f form)
(walk-code-form coord f form)

Walk through form calling (f coor element). The value of coor is a vector of indices representing element's position in the form or a string for navigating into maps and set which are unordered. In the case of map elements, the string will start with a K or a V depending if it is a key or a value and will be followed by the hash of the key form for the entry. For sets it will always start with K followed by the hash of the element form. All metadata of objects in the form is preserved.

Walk through form calling (f coor element).
The value of coor is a vector of indices representing element's
position in the form or a string for navigating into maps and set which
are unordered. In the case of map elements, the string will start with a K or a V
depending if it is a key or a value and will be followed by the hash of the key form for the entry.
For sets it will always start with K followed by the hash of the element form.
All metadata of objects in the form is preserved.
raw docstring

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

× close