(apply-to-if m test f & args)
(deep-merge & maps)
Merges maps recursively down.
Merges maps recursively down.
(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.
(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.
(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.
(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.
(err error-string)
Creates an exception object with error-string.
Creates an exception object with error-string.
(parse-float s)
(parse-int 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.
(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.
(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.
(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.
(vec? x)
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close