Function treePush

  • Adds a new elements into the tree at the given node.

    Type Parameters

    • T

    Parameters

    • tree: Tree<T>

      The tree to add the new element into.

    • at: Tree<T>

      The node in the tree where to add the new element.

    • children: Tree<T>[]

      The element to add.

    • comparator: TreeComparator<T>

      The tree node comparator.

    Returns void

Generated using TypeDoc