Is it possible to find index of array where values is "any value" ?

Suppose there is array from index 0 to 99 and have same values stored 0 to 99.

And we want to find the index of array where value is "35".

I need some fast solution otherwise it can done thru for loop.