I am new to Prolog and I had a question about defining predicates. I am reading some code where the same fact is defined more than once:
sister(jenny, sarah).
sister(jenny, sarah).
sister(jenny, sarah).
From what I understand, this is a fact representing that jenny and sarah are sisters but this code is repeated three times. What significance does this have?
jenny
is sister ofsarah
. And if you query,sister(X, Y)
you'll get the same answer 3 times. – lurker