Is there a way to force the prolog CLI to return query results with only the variables I'm interested in? A simple example would be:
?- mother(M, C1), father(F, C1).
which returns bindings for all M
, F
and C1
. But I'm interested only in M
and F
, while C1
is just clutter. In this simple example it's not bad but for longer queries with many helper variables it's much more vexing.
Is there a simple way to express that via the query; I mean without defining a separate rule?
Cheers, Jacek
lambda
is an extra package that needs to be added usingpack_install(lambda).
– Floatable