Darwin Help
Back to Index
TreeSize
Function
TreeSize
- Number of leaves in a tree
Calling Sequence
TreeSize(t)
Parameters
Name
Type
Description
t
Tree
a Tree
Return Type
integer
Synopsis
Traverse a tree and returns the number of leaves.
Examples
> t := Rand(Tree):
> TreeSize(t);
17
See also
CenterTreeRoot
,
RotateTree