[erlang-questions] Getting the position of a list item

Attila Rajmund Nohl attila.r.nohl@REDACTED
Wed Dec 2 19:29:30 CET 2009


2009/12/2, Garrett Smith <g@REDACTED>:
> I'm missing something basic here :\
>
> The lists module has keyfind/3 but no find/2, where you want to return
> the position of a particular list item. This is surprising.
>
> Is there a commonly used pattern for this?

string:str(List, [Element]).


More information about the erlang-questions mailing list