Reputation: 2319
?- assert(p(a)),assert(p(b)),p(X).
X = a
yes
Whats the effect of this query and why does it return this particular result?
Upvotes: 1
Views: 72
Reputation: 19467
It is as if you queried the following source:
input.pl:
p(a).
p(b).
?- p(X)
X = a
yes
Upvotes: 2