Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Write the full output

0 views
Skip to first unread message

Michael Igler

unread,
Oct 8, 2008, 10:53:18 AM10/8/08
to
Michael Igler <michae...@web.de> wrote:

> Hello,
>
> Prolog delivers me the following output:
>
> G = [[[a:1, b:1, c:1], c, [a:1, b:1, c:0], b, [a:1, b:0, ... : ...], a,
> [... : ...|...]], [[a:1, b:1, c:1], c, [a:1, b:1, c:0], a, [a:0, ... :
> ...|...], b, [...|...]], [[a:1, b:1, c:1], a, [a:0, b:1, ... : ...], c,
> [... : ...|...], b|...]] ;
>
>
> Is it possible to force Prolog to bring the full list without
> the ... : ... abreviations, no matter how long it will be?
>
>
> Mike


Well a

writeList([H | T]) :- write(H), nl, writeList(T).
writeList([]).

with using it after the calculation of G is doing the job.


Mike


0 new messages