match(a, v)

Returns the index of object v inside array a. Returns -1 if not found.

match(a, v, i)

As above but search starts at index i.


See also matchcount find findall 


Example


a = ( 1, 3, 5, 7 )

1  3  5  7

match( a, 5 )

3