Re: Building lists and sublists
- From: Markus Triska <triska@xxxxxx>
- Date: Thu, 14 Dec 2006 20:43:15 +0100
"andrea" <kerny404@xxxxxxxxx> writes:
why using "->" instead of ","
Try both versions in SWI's graphical tracer: "?- gtrace, par([], Ws).".
When you reach get_char(C) in the tracer, enter "a b c d." on the
terminal and proceed further in the tracer. Notice that the "," version
leaves choice-points on the call stack, and the "->" version doesn't.
All the best,
Markus Triska
.
- References:
- Building lists and sublists
- From: andrea
- Re: Building lists and sublists
- From: Markus Triska
- Re: Building lists and sublists
- From: andrea
- Building lists and sublists
- Prev by Date: Re: difference lists ad CLP(FD) exercises
- Next by Date: Re: Syntax Error in GNU Prolog 1.2.16
- Previous by thread: Re: Building lists and sublists
- Index(es):