Darwin Help

Back to Index

Leaves

Iterator Leaves - walks over all the leaves of a tree

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

tree Treea general tree
Return Type  Leaf
Synopsis This is an iterator which returns all the leaves of a tree in infix order.
See also Infix,   iterate,   iterator,   Leaf,   objectorientation,   Postfix,   Prefix