Prepend a tree to the children of the root node. If self is a leaf, it is converted into a branch.
self
Tree underlying type.
The tree to modify.
Child to prepend.
A new updated tree with the new node prepended.
Prepend a tree to the children of the root node. If
selfis a leaf, it is converted into a branch.Type Param: A
Tree underlying type.
Param: self
The tree to modify.
Param: child
Child to prepend.
Returns
A new updated tree with the new node prepended.