Darwin Help

Back to Index

Infix

Iterator Infix - walks over all the nodes of a tree in infix order

Calling Sequence  for n in Infix(tree) do ... od;
Parameters
NameTypeDescription

tree Treea general tree
Return Type  Tree
Synopsis This is an iterator which returns all the nodes (internal nodes of type "Tree" or external nodes of type "Leaf") of a tree in infix order. Infix order means that the left subtree is visited first, then the node, then the right subtree, for every node recursively.
See also iterate,   iterator,   Leaf,   Leaves,   objectorientation,   Postfix,   Prefix