Skip to content

iter::lastIndexOfAny

lastIndexOfAny(items, targets)
lastIndexOfAny(items, targets, startIndex: Integer)

ParameterTypeDescription
itemsIterableThe Iterable to look in
targetsIterableThe values to search for
(optional) startIndexIntegerWhich index to start at

Returns

(Integer) The index of the last item that is equal to one of the values, or -1 if no match was found.