Contains functions for transforming vector values into map values and map values into vector values. These functions are useful when you need to transform between an associative structure with arbitrary ordering to one with ordering.
Contains functions for transforming vector values into map values and map values into vector values. These functions are useful when you need to transform between an associative structure with arbitrary ordering to one with ordering.
(keyify x)
Creates a value that mapify
will treat as a key
Creates a value that `mapify` will treat as a key
(mapify x)
Transforms annotated vectors and lists to maps recursively, starting at
the leaves of x
.
Transforms annotated vectors and lists to maps recursively, starting at the leaves of `x`.
(mapify* x)
If x is sequential and (:map (meta x))
is truthy, then treat x
as
a sequence of key/value pairs to transform into a map. Not recursive
(see mapify
)
If x is sequential and `(:map (meta x))` is truthy, then treat `x` as a sequence of key/value pairs to transform into a map. Not recursive (see [[mapify]])
(vecify* x)
Transforms a map into a vector of key value pairs. If x
is not a map,
just returns it
Transforms a map into a vector of key value pairs. If `x` is not a map, just returns it
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close