Darwin Help

Back to Index

Postfix

Iterator Postfix - walks over all the nodes of a tree in postfix order

Calling Sequence  for n in Postfix(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 postfix order. Postfix order means that the left subtree is visited first, then the right subtree, then the node, for every node recursively.
See also Infix,   iterate,   iterator,   Leaf,   Leaves,   objectorientation,   Prefix