i encounter a problem with facts. Let's say i got 3 facts and check(X)
question.
fact(a,b).
fact(b,c).
fact(a,d).
check(X):-
//some calculation with fact()
How to make above question to return list of elements for given X
from all facts?
For instance: check(a)
would give result b
and d
. So i can use this const later.
check(b)
would return c
. I would be grateful for help!