Arguments

key
str
required

The key of the list.

element
unknown
required

The element to match.

rank
int

Which match to return. 1 to return the first match, 2 to return the second match, and so on. 1 by default.

count
int

The maximum number of elements to match. If specified, an array of elements is returned instead of a single element.

maxlen
int

Limit the number of comparisons to perform.

Response

The index of the matching element or an array of indexes if count is specified.