Getting the position of a list item
Wed Dec 2 20:43:19 CET 2009
> Hmm, I fail to come up with a good usage scenario for wanting this. What are
> you needing the position of an item in a list for?
FWIW, here's something i wrote recently:
The corresponding encode function uses lists:nth/2.
Can't remember ever needing it before though (in erlang).
More information about the erlang-questions