Hello<br><br>I can't find standard function which returns position of element in list like:<br><br>num(El, List) -><br> num(El, List, 1).<br><br>num(_, [], _) -> {error, not_found};<br>num(El, [H|T], Acc) -><br>
case H of<br> El -> Acc;<br> _ -> num(El, T, Acc+1)<br> end.<br><br>I think it strange. Can you clarify this point?<br><br>Thank you.<br><br>-- <br>Maxim Treskin<br>