SWI-Prolog - show long list

后端 未结 5 967
猫巷女王i
猫巷女王i 2020-12-01 16:04

I\'m using SWI-Prolog and I\'m trying to print a list but if the list has more than 9 items - it look like that -

[1, 15, 8, 22, 5, 19, 12, 25, 3|...] 
         


        
5条回答
  •  [愿得一人]
    2020-12-01 16:44

    If you want that SWI-Prolog will show the whole list by default you can add this line to your init file:

    :- set_prolog_flag(answer_write_options,[max_depth(0)]).
    

    You can modify the init file easily from the GUI (Settings => User init file).

提交回复
热议问题