if I use something like this in Prolog
test(X/Y).
or
test(X:Y).
So X:Y and X/Y are considered as a variable, or as a string?
In what category we can put it?
if I use something like this in Prolog
test(X/Y).
or
test(X:Y).
So X:Y and X/Y are considered as a variable, or as a string?
In what category we can put it?
Both
X/YandX:Yare compound terms. Try:Both
/and:are standard infix operators:The type
yfxmeans that the operator is left-assotiative:While the type
xfymeans that the operator is right-assotiative: