indexOf function

Get the index of an element in list.