Skip to main content

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.

No examples yet. Be the first to add one!