(rontolisp) docs
← Seqs

tree-seq

(tree-seq branch? children root)

Answers the nodes of the tree under root, depth first, as a lazy seq: a node is followed by the nodes under each of (children node) when (branch? node) is truthy. branch? and children are called on a node as its cell realizes, like the oracle's walk, so an endless tree takes. Also names a function value.