map-keys
function
rewrite-clj.zip/map-keys
(map-keys [f zloc])Returns `zloc` with function `f` applied to all key nodes of the current node.
Current node must be map node.
`zloc` location is unchanged.
`f` arg is zloc positioned at key node and should return:
- an updated zloc with zloc positioned at key node
- a falsey value to leave value node unchanged
Folks typically use [[rewrite-clj.zip/edit]] for `f`.
Examples
No examples yet. Be the first to add one!