Top "Prolog-dif" questions

dif/2 is a Prolog built-in predicate to express in a sound manner syntactic inequality.

What is the logical 'not' in Prolog?

The problem that I face, is a bit trivial. I want to use logical not in Prolog, but it seems …

prolog prolog-dif
Deleting all occurrences of an element from a list

Trying to write a procedure that given a value and a list, it deletes all the occurence of that value …

prolog prolog-dif
What are the uses of the fail predicate in Prolog?

I can't come up with a situation where I would need it.

prolog prolog-dif
How to access list permutations in prolog?

I want to access list permutation and pass it as argument to other functions. This is the permutation code: takeout(…

list prolog permutation prolog-dif
Simplified Travelling Salesman in Prolog

I've looked through the similar questions but can't find anything that's relevant to my problem. I'm struggling to find an …

prolog backtracking traveling-salesman prolog-dif
Implement a Prolog predicate that say if an element belong to a list. Problems with not numerical lists

I am studying Prolog for an university exam and I have problems with this exercise: Implement the predicate not_member(…

prolog prolog-dif