(-branch? x)Returns true if it's possible for this type to have children
Returns true if it's possible for this type to have children
(-children x)Returns the children (if any) of this node
Returns the children (if any) of this node
(-make-node orig-node children)Creates a new node from the existing orig-node and (potentially new) children
Creates a new node from the existing `orig-node` and (potentially new) children
(post-order-transform zipper visitors)Zips through zipper applying each visitor function in visitors.
visitors is a seq of functions that accepts one argument (the node
to transform)
Zips through `zipper` applying each visitor function in `visitors`. `visitors` is a seq of functions that accepts one argument (the node to transform)
(post-order-visit zipper initial-state visitors)Does a post-order travsersal of zipper. visitors is a seq of
functions that take two args, node and state
Does a post-order travsersal of `zipper`. `visitors` is a seq of functions that take two args, node and state
(pre-order-visit zipper initial-state visitors)Does a pre-order travsersal of zipper. visitors is a seq of
functions that take two args, node and state
Does a pre-order travsersal of `zipper`. `visitors` is a seq of functions that take two args, node and state
(tree-zipper node)Zipper that knows how to walk clojure data structures. Modifications while zipping are replaced with structures of the same time
Zipper that knows how to walk clojure data structures. Modifications while zipping are replaced with structures of the same time
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |