ToolSet / com.zndevs.toolset.tools / Node / addChild

addChild

fun addChild(child: Node<TValue>): Unit

Adds a node to this node’s children

Parameters

child - The child nodefun addChild(child: TValue): Node<TValue>

Wraps child in a Node instance and adds to this node’s children

Parameters

child - Value to create a child from

Return Node that was added