edit
function
rewrite-clj.zip/edit
(edit [zloc f & args])Return `zloc` with the current node replaced with the result of:
`(apply f (s-expr current-node) args)`
The result of `f`, if not already a node, will be coerced to a node if possible.
See docs for [sexpr nuances](/doc/01-user-guide.adoc#sexpr-nuances).
Use [[edit*]] for non-coercing version of edit.
Examples
No examples yet. Be the first to add one!