Neophyte1981
Programmer
Is there a way to use a variable as a predicate?
For instance
Then asking
should yield false. Is this is possible? Do I need to use an eval() type function?
With kind regards, Patrick
For instance
Code:
test(Pred, Var) :- Pred(Var).
Code:
test(not, true).
With kind regards, Patrick