createSingleNode

fun <T> createSingleNode(value: T): TreeNode<T>

Creates a single TreeNode with the specified value and no children.

Return

A TreeNode containing the specified value.

Parameters

value

The value to be stored in the TreeNode.