(apply-if m test 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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close