Skip to content

Instantly share code, notes, and snippets.

@locks
Created January 24, 2011 16:45
Show Gist options
  • Save locks/793500 to your computer and use it in GitHub Desktop.
Save locks/793500 to your computer and use it in GitHub Desktop.
elimina1(N,[H|T],T) :- N == H .
elimina1(N,[H|T],[H|LB]) :- elimina1(N,T,LB) .
elimina_todos(_,[],[]).
elimina_todos(N,[H|T],R) :- N == H , elimina_todos(N,T,R) .
elimina_todos(N,[H|T],[H|LA]) :- elimina_todos(N,T,LA) .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment