child

fun child(child: T): TreeNode<T>

Add new child to current node or root.

Return

the new child

Parameters

child

A node which will be directly connected to current node.