I am using yap. Suppose I have this scenario:
p(x,y) :- q(x), f(x,y), g(x).
I need to put the body of the predicate in a list using the command listing(p).
Expected output should be: [q,f,g].
How I can do that?
I am using yap. Suppose I have this scenario:
p(x,y) :- q(x), f(x,y), g(x).
I need to put the body of the predicate in a list using the command listing(p).
Expected output should be: [q,f,g].
How I can do that?
with a service predicate
we can do
all builtins used are ISO standard