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),
2.1m questions
2.1m answers
60 comments
57.0k users