• Creates a splay tree node with the given structural elements

    Parameters

    • val: any

      the value of the node

    • OptionalleftChild: SplayTree<any> = empty

      the left child

    • OptionalrightChild: SplayTree<any> = empty

      the right child

    Returns SplayTree<any>

    a new splay tree node