input : run([p(X,Y,Z),h(Z,P,Q)],Out). code: :- ensure_loaded(library(lists)). run([X|Y],Out) :- X =.. [Fct|Args],
I\'ve bee开发者_开发知识库n using the gprolog thingy to do some things in prolog. But now when testing some more code I discovered that it does not support \"false\". Which is supported by swi? Use fa
Assume I have the following rules: unify(\'test\', \'this is a test\'). run :- write(\'Enter something: \'),
Is there a way to do an if in prolog, e.g. if a variable is 0, then to do some actions (write text开发者_Go百科 to the terminal). An else isn\'t even needed, but I can\'t find any documentation of if.
I want to provide a diff report for a non regression test. My program is Java based but I did not found any API filling my needs.