I want to look up the index of an array by a value:
List<string> list = new List<string>() { "Leão", "Guepardo", "Elefante" };
String[] array = new String[3] { "Leão", "Guepardo", "Elefante" };
For example, I want to look up the index of the value "Elephant", how can I do this? Is there a method? Can linq
be able to do this search and return me an index?