Comment Comment by dragonwriter > I think line 3 could just be locatedIn(X, Y) :- locatedIn(X, Z), locatedIn(Z,Y).This creates potential infinite recursion, which is why the other form is used. parent dragonwriter 8 years ago
This creates potential infinite recursion, which is why the other form is used.