Liking cljdoc? Tell your friends :D

extra-loom.utils


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

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

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-in-ifclj/s

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

Applies f to m with args if test is true. test is a 1-arg fn passed m.

Applies f to m with args if test is true. test is a 1-arg fn passed m.
raw docstring

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

× close