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__2895 G__2896)

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

branch?clj

(branch? G__2828)

Returns true if the node at loc is a branch

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

childrenclj

(children G__2831)

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

downclj

(down G__2841)

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
raw 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)
raw docstring

end?clj

(end? G__2910)

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

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

insert-childclj

(insert-child G__2892 G__2893)

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

insert-leftclj

(insert-left G__2880 G__2881)

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

insert-rightclj

(insert-right G__2884 G__2885)

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

leftclj

(left G__2866)

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

leftmostclj

(leftmost G__2873)

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

leftsclj

(lefts G__2839)

Returns a seq of the left siblings of this loc

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

nextclj

(next G__2898)

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

nodeclj

(node G__2825)

Returns the node at loc

Returns the node at loc
raw 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
raw docstring

prevclj

(prev G__2905)

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

removeclj

(remove G__2912)

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

replaceclj

(replace G__2888 G__2889)

Replaces the node at this loc, without moving

Replaces the node at this loc, without moving
raw docstring

(right G__2856)

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

rightmostclj

(rightmost G__2863)

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

rootclj

(root G__2853)

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

upclj

(up G__2850)

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

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

× close