ailearner
Programmer
- Nov 26, 2008
- 2
Without using the built-in predicate subtract/3,implement a predicate diff/3 to compute the difference between two given sets (recall that lists may be interpreted as sets if the ordering and duplicate elements are ignored).
Example: ?- diff([1,3,3,4], [4,5,8], X)
i am working on this but i found very hard so couldnt solve it please help
Example: ?- diff([1,3,3,4], [4,5,8], X)
i am working on this but i found very hard so couldnt solve it please help