I have a series of facts in prolog that contain the anonymous variable _
.
fact(a, _).
fact(b, _).
fact(c, _).
and i have some rules that take in lists of these facts:
f([H | T]) :- H == fact(a, _),
% stuff %
.
however this is not working. The rule is not going past the first clause H == fact(a, _)
. What am I doing wrong? Is there a different operator for equality?