I run into problem while reading a book.
I see a program use predicate "simple" ( I guess simple/1
). I don't know what is the meaning of this predicate, I can't find it with ?-help(simple)
in the console.
But when I tried with some queries in console, it worked something like:
5 ?- simple(p(x)).
false.
6 ?- simple(mia).
true.
7 ?- simple(Mia).
true.
8 ?- simple(f(Mia)).
false.
I guess it is some sort of predicate to determine if the argument was Terms(or Variables) or Complex Terms.
simple/1
is not very helpful because it merges two levels of testing into one predicate. – Pothouse