SWI-Prolog - show long list

后端 未结 5 975
猫巷女王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:32

    If prolog returns only one answer, you can make it wait by typing "; true." after the predicate. Then, if you press "w", you will get to see the whole list as written in the doc : http://www.swi-prolog.org/FAQ/AllOutput.html

提交回复
热议问题