4 ms·
aren't predicates in prolog always starting with a lower letter and only variables with a capital letter?
by 2-718-281-828 3y ago
aren't predicates in prolog always starting with a lower letter and only variables with a capital letter?
- gorkempacaci 3y agoYes. Also, in the ancestor predicate, the arrow should be in the other direction.
- maweki 3y agoYeah, we can't distinguish the arguments. Can't have a parent named X, I guess.
- aarroyoc 3y agoYou can, you just need to quote it in single quotes: 'X'.