Removes deleteCount children, starting Nth the direct child of the given tree. If the tree is a branch with a single child then a Leaf is returned.
deleteCount
Leaf
If the given index is out-of-bounds, or the given tree is a leaf, it is returned unchanged.
If the deleteCount is beyond the edge of the list, removes all children from the Nth index.
Index in root node forest.
Count of nodes to be deleted.
The tree with on less node.
Removes
deleteCountchildren, starting Nth the direct child of the given tree. If the tree is a branch with a single child then aLeafis returned.If the given index is out-of-bounds, or the given tree is a leaf, it is returned unchanged.
If the
deleteCountis beyond the edge of the list, removes all children from the Nth index.