Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Long Lists displayed with ...... ( series of dots) why?

Status
Not open for further replies.

anjum114

Programmer
Oct 15, 2008
2
Hi,
I am new to prolog, I have programs that deal with long list. when I try to display then all I get is series of dots.

For example

?- X = [1,2,2,2,3,3,4,4,5,6,7,7,7,5,5,7,4,4,6,78,3,3,5,7,78,5,3,4,6,7,3,5,6,7,4,45,6,7,8,9,4,4,6,8,9,4,4,6,8,9,4,45,6,7,8,9,4,4,5,6,78,8,93,3,5,6,7].

X = [1, 2, 2, 2, 3, 3, 4, 4, 5|...] ;
is there any way to make prolog display everything
 
On SWI-Prolog, copy this line in your pl.ini file :
:- set_prolog_flag(toplevel_print_options,
[quoted(true), portray(true), max_depth(0)]).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top