Liking cljdoc? Tell your friends :D

tool-belt.core


apply-to-ifclj/s

(apply-to-if m test f & args)

deep-mergeclj/s

(deep-merge & maps)

Merges maps recursively down.

Merges maps recursively down.
raw docstring

deep-merge-withclj/s

(deep-merge-with f & maps)

Like merge-with, but merges maps recursively, applying the given fn only when there's a non-map at a particular level.

Like merge-with, but merges maps recursively, applying the given fn
only when there's a non-map at a particular level.
raw docstring

dissoc-inclj/s

(dissoc-in m ks)

Dissocs at the ks vector in a nested map. Supplying special key :all in the last position in ks will dissoc all entries. Supplying :all in another possible will cause all map-entries at that level to be recursed into.

Dissocs at the ks vector in a nested map.
Supplying special key :all in the last position in ks will dissoc all entries.
Supplying :all in another possible will cause all map-entries at that level to be recursed into.
raw docstring

dissoc-in-cleanclj/s

(dissoc-in-clean m ks)

Likes dissoc-in but when the result of the dissoc leaves in empty collection in the nested map, removes that map-entry that it is in, so cleaning the map from empty nested collections like ..:b {:a #{} :b 1}... [:a #{}] would be removed.

Likes dissoc-in but when the result of the dissoc leaves in empty collection in
the nested map, removes that map-entry that it is in, so cleaning the map from
empty nested collections like ..:b {:a #{} :b 1}...  [:a #{}] would be removed.
raw docstring

dissoc-in-whenclj/s

(dissoc-in-when m ks pred)

Like dissoc-in, but items are dissoc'd only when (pred value-of-entry) is true.

Like dissoc-in, but items are dissoc'd only when (pred value-of-entry) is true.
raw docstring

errclj/s

(err error-string)

Creates an exception object with error-string.

Creates an exception object with error-string.
raw docstring

in?clj/s

(in? coll elm)

true if coll contains elm

true if coll contains elm
raw docstring

joinclj/s

(join colls)

Concat a collection of colls.

Concat a collection of colls.
raw docstring

not-in?clj/s

true if coll does not contains elm

true if coll does not contains elm
raw docstring

parse-floatclj/s

(parse-float s)

parse-intclj/s

(parse-int s)

prewalkclj/s

(prewalk parent state state-fn replace-fn form)

Like clojure.walk/prewalk but stateful. parent is the parent of the form. state is recursed down through the form, at each level updated by the state-fn (which must accept previous state, the parent form and the current form. replace-fn accepts the current state and form.

Like clojure.walk/prewalk but stateful.
parent is the parent of the form. state is recursed down through the form,
at each level updated by the state-fn (which must accept previous state, the
parent form and the current form. replace-fn accepts the current state and form.
raw docstring

update-in-allclj/s

(update-in-all m ks f & args)

Like update-in but when special key :all is supplied in the ks vector, all map-entries at that level will be accepted.

Like update-in but when special key :all is supplied in the ks vector,
all map-entries at that level will be accepted.
raw docstring

update-in-all-ifclj/s

(update-in-all-if m test ks f & args)

Like update-in-all but only if test is true.

Like update-in-all but only if test is true.
raw docstring

update-keysclj/s

(update-keys m update? key-fn)

Walks a nested map m recursively updating all keys with the supplied key-fn where the supplied predicate update? fn for the key is true. key-fn should have one parameter; the key. update? should accept two parameters; the key and the parent key.

Walks a nested map m recursively updating all keys with the supplied
key-fn where the supplied predicate update? fn for the key is true.
key-fn should have one parameter; the key.
update? should accept two parameters; the key and the parent key.
raw docstring

vec?clj/s

(vec? x)

with-pathclj/s

(with-path form)

Decorates every level of a nested form with it's path added in a :$path key.

Decorates every level of a nested form with it's path added in a :$path key.
raw docstring

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

× close