Liking cljdoc? Tell your friends :D

telsos.lib.algorithms.maps


deref-at-keyclj/s

(deref-at-key x k)
(deref-at-key x k & ks)

Takes a value x and one or more keys/indexes. If x is a map or vector containing the key/index and the value at that position is dereferenceable (atom, delay, etc.), returns a map/vector with the dereferenced value. Processes all provided keys. Otherwise returns x unchanged.

Takes a value x and one or more keys/indexes. If x is a map or vector
containing the key/index and the value at that position is dereferenceable
(atom, delay, etc.), returns a map/vector with the dereferenced value.
Processes all provided keys. Otherwise returns x unchanged.
raw docstring

invert-map->multimapclj/s

(invert-map->multimap m)

m=clj/s

(m= m)
(m= m1 m2)
(m= m1 m2 & more)

mcountclj/s

(mcount m)

mempty?clj/s

(mempty? m)

mmergeclj/s

(mmerge)
(mmerge m)
(mmerge m1 m2)
(mmerge m1 m2 & maps)

mmerge-2clj/s

(mmerge-2 m1 m2)

submap?clj/s

(submap? m1 m2)

Returns true if m2 is a submap of m1, false otherwise. A map is considered a submap if all of its key-value pairs exist in the other map. It also works for vectors, treating them as maps with non-negative integral keys.

Returns true if m2 is a submap of m1, false otherwise. A map is considered a submap if
all of its key-value pairs exist in the other map. It also works for vectors, treating
them as maps with non-negative integral keys.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close