def _rindex(mylist: Sequence[T], x: T) -> int:
    """Index of the last occurrence of x in the sequence."""
    return len(mylist) - mylist[::-1].index(x) - 1
def _rindex(mylist: Sequence[T], x: T) -> int:
    
    return len(mylist) - mylist[::-1].index(x) - 1
def _rindex ( mylist : Sequence [ T ] , x : T ) -> int : return len ( mylist ) - mylist [ : : - 1 ] . index ( x ) - 1
Index of the last occurrence of x in the sequence.
Index of the last occurrence of x in the sequence .