I want to write a rule to exit prolog but how can I do this?
What should I do so that I can exit the program?
I tried something like this
do(exit):-halt, but halt does not work.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
g(X) :- a(X), halt.?- g(X). % exits from swipl - nessuno