I\'m looking for an Erlang library function that will return the index of a particular element in a list.
So, if
<
As others noted, there are more efficient ways to solve for this. But if you're looking for something quick, this worked for me:
string:str(List, [Element]).