Liking cljdoc? Tell your friends :D

rewrite-clj.custom-zipper.core

Functional hierarchical zipper, with navigation, editing, and enumeration. See Huet

Functional hierarchical zipper, with navigation, editing,
and enumeration.  See Huet
raw docstring

append-childclj

(append-child G__1241 G__1242)

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
sourceraw docstring

branch?clj

(branch? G__1174)

Returns true if the node at loc is a branch

Returns true if the node at loc is a branch
sourceraw docstring

childrenclj

(children G__1177)

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
sourceraw docstring

downclj

(down G__1187)

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
sourceraw docstring

editclj

(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)
sourceraw docstring

end?clj

(end? G__1256)

Returns true if loc represents the end of a depth-first walk

Returns true if loc represents the end of a depth-first walk
sourceraw docstring

insert-childclj

(insert-child G__1238 G__1239)

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
sourceraw docstring

insert-leftclj

(insert-left G__1226 G__1227)

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
sourceraw docstring

insert-rightclj

(insert-right G__1230 G__1231)

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
sourceraw docstring

leftclj

(left G__1212)

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
sourceraw docstring

leftmostclj

(leftmost G__1219)

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
sourceraw docstring

leftsclj

(lefts G__1185)

Returns a seq of the left siblings of this loc

Returns a seq of the left siblings of this loc
sourceraw docstring

nextclj

(next G__1244)

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.
sourceraw docstring

nodeclj

(node G__1171)

Returns the node at loc

Returns the node at loc
sourceraw docstring

positionclj

(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
sourceraw docstring

prevclj

(prev G__1251)

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.
sourceraw docstring

removeclj

(remove G__1258)

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.
sourceraw docstring

replaceclj

(replace G__1234 G__1235)

Replaces the node at this loc, without moving

Replaces the node at this loc, without moving
sourceraw docstring

(right G__1202)

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
sourceraw docstring

rightmostclj

(rightmost G__1209)

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
sourceraw docstring

rootclj

(root G__1199)

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.
sourceraw docstring

upclj

(up G__1196)

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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close