eliminar([], E, []). eliminar([X|Xs], N, [X|Laux]) :- N =\= X, eliminar(Xs, N, Laux). eliminar([X|Xs], N, Laux) :- N =:= X, eliminar(Xs, N, Laux).
Standard input is empty
[2,6,8,5]
Warning: /home/OVfJcc/prog:1: Singleton variables: [E] ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit