I would like to add a counter in this loop in order to know the row of each element of the list. Do you have a simple solution?
lists:foreach(fun(X) .... end,Y),
Use lists:foldl or write your own function:
lists:foldl(fun(E,Cnt) -> ..., Cnt+1 end, 0, Y),
1.4m articles
1.4m replys
5 comments
57.0k users