Re: Replace occurrence of a list with another?



Dear Brian,

That is the stop condition for the replaceall predicate.

Sorry, I meant this clause.

replaceall(X,Y,[H|T],[H|List]) :-
replaceall(X,Y,T,List).

What does it say?

Best,

Bill
.