« Index of all namespaces of this project

`(tree-seq-depth branch? children root)`

Returns a lazy sequence of vectors of the nodes in a tree and their depth as [node depth], via a depth-first walk. branch? must be a fn of one arg that returns true if passed a node that can have children (but may not). children must be a fn of one arg that returns a sequence of the children. Will only be called on nodes for which branch? returns true. Root is the root node of the tree.

`(tree-seq-path branch? children root & [node-fn])`

Like core's tree-seq but returns a lazy sequence of vectors of the paths of the nodes in a tree, via a depth-first walk. It optionally applies node-fn to each node before adding it to the path. branch? must be a fn of one arg that returns true if passed a node that can have children (but may not). children must be a fn of one arg that returns a sequence of the children. Will only be called on nodes for which branch? returns true. Root is the root node of the tree.