# Is there a command to find the place of an element in an array?

For example, let v=[a, b, c, d] I wonder if there is already encoded a function f such that f(a)=0, f(b)=1, f(c)=2..