Re: how to rename variables?
- From: bart demoen <bmd@xxxxxxxxxxxxxx>
- Date: Mon, 27 Aug 2007 21:25:43 +0200
On Sun, 26 Aug 2007 23:34:06 +0200, Markus Triska wrote:
Indeed; however, the "term copying" property of findall is worth
knowing since it can be used to define the entire evaluation strategy
of pure Prolog in a single line of semi-deterministic Prolog code:
step([A|As0], As) :- findall(Gs-G, (A=[G0|Rest]-G,ld(G0,Gs,Rest)), As, As0).
I had never considered the question
what would be the worst reason why I would like to know about
the copying semantics of findall/3 ?
I now know the answer - I am so happy !
Reminds a bit of 42.
Bart Demoen
.
- Follow-Ups:
- Re: how to rename variables?
- From: Markus Triska
- Re: how to rename variables?
- References:
- how to rename variables?
- From: Giovanni Gherdovich
- Re: how to rename variables?
- From: Bart Demoen
- Re: how to rename variables?
- From: Giovanni Gherdovich
- Re: how to rename variables?
- From: Chip Eastham
- Re: how to rename variables?
- From: Markus Triska
- Re: how to rename variables?
- From: Jan Wielemaker
- Re: how to rename variables?
- From: Markus Triska
- how to rename variables?
- Prev by Date: Re: Prolog doesn't give multiple solutions to my goal.
- Next by Date: Re: how to rename variables?
- Previous by thread: Re: how to rename variables?
- Next by thread: Re: how to rename variables?
- Index(es):