(assoc m & kvs)
Like core/assoc but inlines the association to all the arguments.
Like core/assoc but inlines the association to all the arguments.
(assoc-in m & ksvs)
Like assoc-in but inlines the calls when a static sequence of keys is provided. Can take an unlimited number of [ks v] pairs. Caution: For more than one path-value pair this macro will reorder code.
Like assoc-in but inlines the calls when a static sequence of keys is provided. Can take an unlimited number of [ks v] pairs. Caution: For more than one path-value pair this macro will reorder code.
(dissoc m & ks)
Like core/assoc but inlines the association to all the arguments.
Like core/assoc but inlines the association to all the arguments.
(dissoc-in m ks)
Like update-in but inlines the calls when a static sequence of keys is provided.
Like update-in but inlines the calls when a static sequence of keys is provided.
(fast-assoc m & kvs)
Like assoc but uses fast-assoc instead.
Like assoc but uses fast-assoc instead.
(fast-map-merge & [m & ms])
Like merge but uses fast-map-merge instead.
Like merge but uses fast-map-merge instead.
(fast-select-keys m ks)
Like select-keys
but faster and uses code generation.
ks
must be either vector, list or set.
Like `select-keys` but faster and uses code generation. `ks` must be either vector, list or set.
(find-some-in m ks)
Like get-some-in but returns a map-entry in the end.
Like get-some-in but returns a map-entry in the end.
(get-in m ks)
(get-in m ks nf)
Like get-in
but faster and uses code generation.
ks
must be either vector, list or set.
Like `get-in` but faster and uses code generation. `ks` must be either vector, list or set.
(get-some-in m ks)
Like get-in, but nil-checks every intermediate value.
Like get-in, but nil-checks every intermediate value.
(memoize* n f)
Memoize using memoize-n functions of up to 8 arguments. Falls back on core/memoize. Faster for keyword and symbols arguments than core/memoize.
Memoize using memoize-n functions of up to 8 arguments. Falls back on core/memoize. Faster for keyword and symbols arguments than core/memoize.
(memoize-c* n f)
Memoize using memoize-c functions of up to 8 arguments. Falls back on core/memoize. Faster than core memoize. Uses a concurrent-hash-map.
Memoize using memoize-c functions of up to 8 arguments. Falls back on core/memoize. Faster than core memoize. Uses a concurrent-hash-map.
(memoize-h* n f)
Memoize using memoize-c functions of up to 8 arguments. Falls back on core/memoize. Faster than core memoize. Uses a concurrent-hash-map.
Memoize using memoize-c functions of up to 8 arguments. Falls back on core/memoize. Faster than core memoize. Uses a concurrent-hash-map.
(merge & [m & ms])
Like core/merge but inlines the sequence of maps to conj.
Like core/merge but inlines the sequence of maps to conj.
(select-keys m ks)
Returns a map containing only those entries in map whose key is in keys
Returns a map containing only those entries in map whose key is in keys
(tmerge)
(tmerge m)
(tmerge m1 m2 & ms)
Like merge but uses rmerge! and an intermediate transient map.
Like merge but uses rmerge! and an intermediate transient map.
(update-in m ks f & args)
Like update-in but inlines the calls when a static sequence of keys is provided.
Like update-in but inlines the calls when a static sequence of keys is provided.
(update-in-> m & ks-exprs)
Like update-in but inlines the calls when a static sequence of keys is
provided.
Can take an unlimited number of [ks exprs] pairs.
Unlike update-in, expressions are not & args, i.e.:
(update-in-> m [:a :b] f [:a :c] (g 1))
The expr must be a seq?
or a symbol.
Like update-in but inlines the calls when a static sequence of keys is provided. Can take an unlimited number of [ks exprs] pairs. Unlike update-in, expressions are not & args, i.e.: (update-in-> m [:a :b] f [:a :c] (g 1)) The expr must be a `seq?` or a symbol.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close