igwan wrote: > Hello, >> %tail recursion >> pos2(X, L) -> position(X, L, 0). >> position(X, [X|_], N) -> 1+N; >> position(X, [_|T], N) -> mypos(X, T, 1+N). >>Where does mypos/3 come from ? Sorry, it is "position(X, T, 1+N).". The question has been solved, thank you. Jilani