clojure.zip
A
Inserts the item as the rightmost child of the node at this loc, without moving
function([loc item])
B
Returns true if the node at loc is a branch
function([loc])
C
Returns a seq of the children of node at loc, which must be a branch
function([loc])
D
Returns the loc of the leftmost child of the node at this loc, or nil if no children
function([loc])
E
I
Inserts the item as the leftmost child of the node at this loc, without moving
function([loc item])
Inserts the item as the left sibling of the node at this loc, without moving
function([loc item])
Inserts the item as the right sibling of the node at this loc, without moving
function([loc item])
L
M
Returns a new branch node, given an existing node and new children. The loc is only used to supply the constructor.
function([loc node children])
N
P
R
Removes the node at loc, returning the loc that would have preceded it in a depth-first walk.
function([loc])
Replaces the node at this loc, without moving
function([loc node])
Returns the loc of the right sibling of the node at this loc, or nil
function([loc])
Returns the loc of the rightmost sibling of the node at this loc, or self
function([loc])
Returns a seq of the right siblings of this loc
function([loc])
zips all the way up and returns the root node, reflecting any changes.
function([loc])
S
Returns a zipper for nested sequences, given a root sequence
function([root])
U
Returns the loc of the parent of the node at this loc, or nil if at the top
function([loc])
V
Returns a zipper for nested vectors, given a root vector
function([root])
X
Returns a zipper for xml elements (as from xml/parse), given a root element
function([root])
Z
Creates a new zipper structure. branch? is a fn that, given a node, returns true if can have children, even if it ...
function([branch? children make-node root])