remove : prolog -
i trying compile csp.pl "computational intelligence book" solves constraint satisfaction problem. want use base solve crossword puzzle generator.
but when try run code gives
existence error in user:remove/3 ! procedure user:remove/3 not exist ! goal: user:remove([1,2,3,4],3,_127) | ?- :-
i think remove not built-in predicate
% select(e,l,l1) selects first element of % l matches e, l1 being remaining % elements. select(d,doms,odoms) :- remove(d,doms,odoms), !. % choose(e,l,l1) chooses element of % l matches e, l1 being remaining % elements. choose(d,doms,odoms) :- remove(d,doms,odoms).
this part of code... can please me fix issue... code should execute since in textbook claimed hv run on programs..
please help
i don't think remove
part of prolog library -- not swi prolog. list library here.
there predicate delete
same thing code uses remove
for. find-and-replace , should work.
Comments
Post a Comment