I'm beginner in SWI-Prolog (but have some experience in Borland Prolog), and I've faced with a strange behavior for the following test code:
test(10).
test(1).
It is expected for query ?-test(A)
to get 2 solutions, something like A = 10; A = 1
. However, only A = 10
is produced. I don't use the cut here. Maybe backtracking is off by default in SWI-Prolog?
Thanks in advance
A=10
returned pres;
to get another solutions and so on... – Sava