3 ms·
Prolog is not functional. Datalog literals [1] and arguments of literals cannot have as arguments functions of arity more than 1 (i.e. constants). Prolog litera
by YeGoblynQueenne 7y ago
Prolog is not functional. Datalog literals [1] and arguments of literals cannot have as arguments functions of arity more than 1 (i.e. constants). Prolog literals and their arguments may have functions of arity more than 1 as arguments.
However, Prolog predicates are relations, not functions. i.e. they have no fixed "input" and "output" arguments. So Prolog is not a functional language.
______________________
[1] In "p(X):- q(X)", p(X) and q(X) are literals.