I’m using: SWI-Prolog version 9.3.31.
I want the code to: make the interpreter write lists without “…”.
E.g. it should write “[did, she]” instead of “[did|…]”.
Is there a way to do this with version 9.3.31 ?
In older versions of Swi Prolog, I could press the “w” key to start “write_mode”.
This would make it write lists in full, instead of shortening them to “[myatom|….]” for example.
So pressing “w” would stop it writing a list like this:
?- myrule(A).
A = test([did|…]).
?-
This no longer works. When I press the “w” key, it still says “[write]”, as shown here, next, but it doesn’t change how it writes lists.
For example, after I press “w”, it says “[write]”, but when I enter the next input, it still writes some terms like “test([myatom|…])”.
?- day(A).
A = monday ;
A = tuesday ;
A = wednesday ;
A = thursday [write]
A = thursday ;
A = friday ;
A = saturday ;
A = sunday.
?-
% your code here