?- append([1,2,3],[4,5,6,7,8,9,10,11], X).
X = [1, 2, 3, 4, 5, 6, 7, 8, 9|...] ;
No
You can press w to force Prolog to display the entire list.
It will then remember this option for the entire session.
?- append([1,2,3],[4,5,6,7,8,9,10,11], X).
X = [1, 2, 3, 4, 5, 6, 7, 8, 9|...] press w [write]
X = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] ;
No
Alternatively, you can use the following directive: set_prolog_flag(toplevel_print_options,[quoted(true)]).
reversePath/2
,
i.e. you do not have to use an accumulator variable.