• Given a red-black tree aRBTree and a value aValue, removes the value from the tree.

    Parameters

    • aRBTree: RBTree<any>

      the red-black tree from which we remove the value

    • aValue: any

      the value to remove from the tree

    Returns RBTree<any>

    a new red-black tree with all the elements of aRBTree except aValue