Functional hierarchical zipper, with navigation, editing, and enumeration. See Huet
Functional hierarchical zipper, with navigation, editing, and enumeration. See Huet
(append-child G__3419 G__3420)
Inserts the item as the rightmost child of the node at this loc, without moving
Inserts the item as the rightmost child of the node at this loc, without moving
(branch? G__3352)
Returns true if the node at loc is a branch
Returns true if the node at loc is a branch
(children G__3355)
Returns a seq of the children of node at loc, which must be a branch
Returns a seq of the children of node at loc, which must be a branch
(down G__3365)
Returns the loc of the leftmost child of the node at this loc, or nil if no children
Returns the loc of the leftmost child of the node at this loc, or nil if no children
(edit loc f & args)
Replaces the node at this loc with the value of (f node args)
Replaces the node at this loc with the value of (f node args)
(end? G__3434)
Returns true if loc represents the end of a depth-first walk
Returns true if loc represents the end of a depth-first walk
(insert-child G__3416 G__3417)
Inserts the item as the leftmost child of the node at this loc, without moving
Inserts the item as the leftmost child of the node at this loc, without moving
(insert-left G__3404 G__3405)
Inserts the item as the left sibling of the node at this loc, without moving
Inserts the item as the left sibling of the node at this loc, without moving
(insert-right G__3408 G__3409)
Inserts the item as the right sibling of the node at this loc, without moving
Inserts the item as the right sibling of the node at this loc, without moving
(left G__3390)
Returns the loc of the left sibling of the node at this loc, or nil
Returns the loc of the left sibling of the node at this loc, or nil
(leftmost G__3397)
Returns the loc of the leftmost sibling of the node at this loc, or self
Returns the loc of the leftmost sibling of the node at this loc, or self
(lefts G__3363)
Returns a seq of the left siblings of this loc
Returns a seq of the left siblings of this loc
(next G__3422)
Moves to the next loc in the hierarchy, depth-first. When reaching the end, returns a distinguished loc detectable via end?. If already at the end, stays there.
Moves to the next loc in the hierarchy, depth-first. When reaching the end, returns a distinguished loc detectable via end?. If already at the end, stays there.
(position loc)
Returns the ones-based [row col] of the start of the current node
Returns the ones-based [row col] of the start of the current node
(prev G__3429)
Moves to the previous loc in the hierarchy, depth-first. If already at the root, returns nil.
Moves to the previous loc in the hierarchy, depth-first. If already at the root, returns nil.
(remove G__3436)
Removes the node at loc, returning the loc that would have preceded it in a depth-first walk.
Removes the node at loc, returning the loc that would have preceded it in a depth-first walk.
(replace G__3412 G__3413)
Replaces the node at this loc, without moving
Replaces the node at this loc, without moving
(right G__3380)
Returns the loc of the right sibling of the node at this loc, or nil
Returns the loc of the right sibling of the node at this loc, or nil
(rightmost G__3387)
Returns the loc of the rightmost sibling of the node at this loc, or self
Returns the loc of the rightmost sibling of the node at this loc, or self
(root G__3377)
zips all the way up and returns the root node, reflecting any changes.
zips all the way up and returns the root node, reflecting any changes.
(up G__3374)
Returns the loc of the parent of the node at this loc, or nil if at the top
Returns the loc of the parent of the node at this loc, or nil if at the top
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close