wiki:TreeTraversal

Version 3 (modified by trac, 12 years ago) ( diff )

RECURSIVE FUNCTION TreeTraversal(Node aNode, FUNCTION f, FUNCTION cond, FuncParam fparam, LOGICAL !EvalNextBefore_f)


Click here to view v174 source.

Recursively traverses a tree starting from aNode, applying the function f to each node if the logical function cond() is satisfied. This is a depth-first traversal, so all the younger, so aNode's descendents will all be processed before TreeTraversal moves on to its younger siblings.


INCLUDES:

None.

USES:

Note: See TracWiki for help on using the wiki.