Home > Archive > Prolog > May 2004 > Print depth (or width?)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Print depth (or width?)
|
|
| Andrey Rybalchenko 2004-05-21, 1:31 pm |
| Hi dear group,
I'd like to print the content of a long list to the console.
Unfortunaltely, the prolog interpreter (sicstus) chops parts
of the list and prints ... instead.
How to make the interpreter not to do this?
Thanks.
Andrey
| |
| Torkel Franzen 2004-05-21, 1:31 pm |
| Andrey Rybalchenko <rybal@mpi-sb.mpg.de> writes:
> How to make the interpreter not to do this?
You use write/1.
| |
| bart demoen 2004-05-23, 4:36 pm |
| Andrey Rybalchenko wrote:
> Hi dear group,
>
> I'd like to print the content of a long list to the console.
> Unfortunaltely, the prolog interpreter (sicstus) chops parts
> of the list and prints ... instead.
>
> How to make the interpreter not to do this?
>
> Thanks.
>
> Andrey
With ?- prolog_flag(toplevel_print_options,X).
you will find out that the toplevel prints terms up to depth 10.
Set it to as much as you want with prolog_flag/3
Cheers
Bart Demoen
|
|
|
|
|