Zippers
Returns a zipper for nested sequences, given a root sequence
functionclojure.zip
Returns a zipper for nested vectors, given a root vector
functionclojure.zip
Returns a zipper for xml elements (as from xml/parse), given a root element
functionclojure.zip
Creates a new zipper structure. branch? is a fn that, given a node, returns true if can have children, even if it ...
functionclojure.zip
Inserts the item as the rightmost child of the node at this loc, without moving
functionclojure.zip
Replaces the node at this loc with the value of (f node args)
functionclojure.zip
Inserts the item as the leftmost child of the node at this loc, without moving
functionclojure.zip
Inserts the item as the left sibling of the node at this loc, without moving
functionclojure.zip
Inserts the item as the right sibling of the node at this loc, without moving
functionclojure.zip
Removes the node at loc, returning the loc that would have preceded it in a depth-first walk.
functionclojure.zip
Replaces the node at this loc, without moving
functionclojure.zip
Returns a seq of the children of node at loc, which must be a branch
functionclojure.zip
Returns the loc of the leftmost child of the node at this loc, or nil if no children
functionclojure.zip
Returns the loc of the left sibling of the node at this loc, or nil
functionclojure.zip
Returns the loc of the leftmost sibling of the node at this loc, or self
functionclojure.zip
Returns a seq of the left siblings of this loc
functionclojure.zip
Returns a new branch node, given an existing node and new children. The loc is only used to supply the constructor.
functionclojure.zip
Moves to the next loc in the hierarchy, depth-first. When reaching the end, returns a distinguished loc detectable via...
functionclojure.zip
Returns the node at loc
functionclojure.zip
Returns a seq of nodes leading to this loc
functionclojure.zip
Moves to the previous loc in the hierarchy, depth-first. If already at the root, returns nil.
functionclojure.zip
Returns the loc of the right sibling of the node at this loc, or nil
functionclojure.zip
Returns the loc of the rightmost sibling of the node at this loc, or self
functionclojure.zip
Returns a seq of the right siblings of this loc
functionclojure.zip
zips all the way up and returns the root node, reflecting any changes.
functionclojure.zip
Returns the loc of the parent of the node at this loc, or nil if at the top
functionclojure.zip