Skip to main content

insert-right

function

rewrite-clj.zip/insert-right

(insert-right [zloc item])
Return `zloc` with `item` inserted to the right of the current node in `zloc`, without moving location. If `item` is not already a node, an attempt will be made to coerce it to one. Will insert spaces around `item` if necessary. There is no consideration on whitespaceness of `item` itself. Use [[rewrite-clj.zip/insert-right*]] to insert without adding any whitespace.

No examples yet. Be the first to add one!