Represents a leaf in a tree data structure.
The type of data stored in the leaf.
Creates a new TreeLeaf instance.
The data to store in the leaf.
Optional
Optional child leaves to add to the leaf.
The child leaves of this leaf.
Returns an array of the data stored in the child leaves of this leaf.
Returns the height of the tree rooted at this leaf.
Adds one or more child leaves to this leaf.
The data to store in the new leaves.
Rest
Additional data to store in new leaves.
The last leaf that was added.
Represents a leaf in a tree data structure.