Well, I seem to need more help in the problem which is the reason for my first question.
I want to write remove_elem(L, X, Ans), where Ans will get the list L after all element X's occurrences has been removed from it.
for example: remove_elem([6,5], 5, Ans) will cause Ans = [6].
I don't have...