TreeNode

constructor(value: T, children: List<TreeNode<T>> = emptyList())

Parameters

T

The type of the value stored in the TreeNode.