• Inserts the value aValue inside the red-black tree aRBTree.

    Parameters

    • aRBTree: RBTree<any>

      the red-black tree in which we insert

    • aValue: any

      the value that is inserted

    Returns RBTree<any>

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