(assoc-if m k v)
(assoc-if m k v & kvs)
Assoc[iate] only truthy values.
Assoc[iate] only truthy values.
(assoc-some m k v)
(assoc-some m k v & kvs)
Assoc[iate] if the value is not nil.
Assoc[iate] if the value is not nil.
(deep-merge values)
(deep-merge strategy & values)
(deep-merge & values)
Recursively merges maps. If the first parameter is a keyword it tells the strategy to use when merging non-map collections. Options are
Recursively merges maps. If the first parameter is a keyword it tells the strategy to use when merging non-map collections. Options are - :replace, the default, the last value is used - :into, if the value in every map is a collection they are concatenated using into. Thus the type of (first) value is maintained.
(into! to from)
Transient version of clojure.core/into
Transient version of clojure.core/into
(max-by k coll)
Returns the x for which (k x), not necessarily a number, is greatest, according to compare
.
Returns the x for which (k x), *not necessarily a number*, is greatest, according to `compare`.
(min-by k coll)
Returns the x for which (k x), not necessarily a number, is greatest, according to compare
.
Returns the x for which (k x), *not necessarily a number*, is greatest, according to `compare`.
(namespaced-keys e ns)
Set the namespace of all map keys (non recursive).
Set the namespace of all map keys (non recursive).
(pull-namespaced-key x key ns)
Pull some key, updating the namespaces of it
Pull some key, updating the namespaces of it
(update! m k f x)
Transient version of clojure.core/update
Transient version of clojure.core/update
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close