Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % 12.
- % a) Sa se inlocuiasca toate aparitiile unui element dintr-o lista cu un
- % alt element.
- repl([],_,_,[]):-!.
- repl([E|T],E,N,[N|R]):-repl(T,E,N,R),!.
- repl([H|T],E,N,[H|R]):-H\=E,repl(T,E,N,R).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement