I am new in Prolog and I am stucked in a problem. I have following facts:
_________________
likes(a,apple).
likes(a,banana).
likes(a,orange).
_________________
and my query will be:
counts(a,Var).
where Var = [apple,banana,orange]
. I don't want in this manner that
Var=apple ;
Var=banana;
Var=orange;
Any suggestions or help will be appreciated. Thanks in advance.