Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- descend(X,Y) :- child(X,Y).
- descend(X,Y) :- child(X,Z),
- descend(Z,Y).
- 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