SRD

child-of

SRD
Sep 9th, 2016
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. descend(X,Y) :- child(X,Y).
  2. descend(X,Y) :- child(X,Z),
  3. descend(Z,Y).
  4. What does this say? The declarative meaning of the base clause is: if Y is a child of X, then Y is a descendent of X.
Advertisement
Add Comment
Please, Sign In to add comment