Rewrite-cljs Api Documentation

Version: 0.3.0

rewrite-clj.zip.utils

remove-and-move-left

(remove-and-move-left [_ {:keys [l], :as path} :as loc])

Remove current node and move left. If current node is at the leftmost location, returns nil.

remove-and-move-right

(remove-and-move-right [_ {:keys [r], :as path} :as loc])

Remove current node and move right. If current node is at the rightmost location, returns nil.

remove-and-move-up

(remove-and-move-up loc)

remove-left

(remove-left loc)

Remove left sibling of the current node (if there is one).

remove-left-while

(remove-left-while zloc p?)

Remove elements to the left of the current zipper location as long as the given predicate matches.

remove-right

(remove-right loc)

Remove right sibling of the current node (if there is one).

remove-right-while

(remove-right-while zloc p?)

Remove elements to the right of the current zipper location as long as the given predicate matches.

remove-while

(remove-while zloc p?)

update-in-path

(update-in-path [node path :as loc] k f)