def lastindex(*args, **kwargs):
    """Search a list backwards for an exact element,
    or element satisfying a predicate.

    Usage::

        lastindex(element, list_)
        lastindex(of=element, in_=list_)
        lastindex(where=predicate, in_=list_)

    :param element, of: Element to search for (by equality comparison)
    :param where: Predicate defining an element to search for.
                  This should be a callable taking a single argument
                  and returning a boolean result.
    :param list_, in_: List to search in

    :return: Index of the last matching element, or -1 if none was found

    .. versionadded:: 0.0.3
    """
    _, idx = _index(*args, start=sys.maxsize, step=-1, **kwargs)
    return idx
def lastindex ( * args , ** kwargs ) : _ , idx = _index ( * args , start = sys . maxsize , step = - 1 , ** kwargs ) return idx
Search a list backwards for an exact element,
    or element satisfying a predicate.

    Usage::

        lastindex(element, list_)
        lastindex(of=element, in_=list_)
        lastindex(where=predicate, in_=list_)

    :param element, of: Element to search for (by equality comparison)
    :param where: Predicate defining an element to search for.
                  This should be a callable taking a single argument
                  and returning a boolean result.
    :param list_, in_: List to search in

    :return: Index of the last matching element, or -1 if none was found

    .. versionadded:: 0.0.3