processNodes

fun Node.processNodes(operation: (Node) -> Unit, walker: (Node) -> Sequence<Node> = Node::walk)

Recursively execute operation on this node, and all nodes below this node.

Parameters

walker

the function that generates the nodes to operate on in the desired sequence.