Getting the position of a list item

Garrett Smith <>
Wed Dec 2 18:10:25 CET 2009


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?

Garrett


More information about the erlang-questions mailing list