What does +,+ mode in Prolog mean?
问题 So am being told a specific predicate has to work in +,+ mode. What does that mean in Prolog? 回答1: When one wants to give information on a predicate in prolog, those conventions are often used : arity : predicate/3 means predicate takes 3 arguments. parameters : predicate(+Element, +List, -Result) means that Element and List should not be free variables and that Result should be a free variable for the predicate to work properly. ? is used when it can be both, @ is mentionned on the above