auto-core.data.map
Map datastructure utility functions
add-ids
(add-ids mm)
(add-ids mm id-kw)
For mm
a map of map, turns {:foo {}}
to {:foo {:id :foo}}
so they key of the outer map is found in the inner one.
deep-merge
(deep-merge & maps)
Deep merge nested maps. When multiple values are found for a key, the value from the last map has higher priority
This code comes from this gist
get-key-or-after
(get-key-or-after m n)
Returns the key if it exists in the sorted-map
Note this is not an efficient way
Params: * m
the sorted map * n
get-key-or-before
(get-key-or-before m n)
Returns the key if it exists in the sorted-map
Note this is not an efficient way
Params: * m
the sorted map * n
map-difference
(map-difference m1 m2)
remove-nil-vals
(remove-nil-vals m)
Remove nil values