iter::indexOfAny
indexOfAny(items, targets)
indexOfAny(items, targets, startIndex: Integer)
Parameter | Type | Description |
---|---|---|
items | Iterable | The Iterable to look in |
targets | Iterable | The values to search for |
(optional) startIndex | Integer | Which index to start at |
Returns
(Integer) The index of the first item that is equal to one of the given values, or -1 if no match was found.