Re: how to rename variables?
- From: Bart Demoen <bmd@xxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Aug 2007 17:40:49 +0200
Giovanni Gherdovich wrote:
Hello.
I wonder if I can find in Prolog a build-in predicate
that allow me to rename all the variables in a list
of terms in order to make these terms to don't
share variables.
Something that behaves like this:
?- rename([X+Y, f(X,g(X))], OutputList).
OutputList = [X1+X2, f(X3,g(X3))]
Try copy_term/2.
Cheers
Bart Demoen
.
- Follow-Ups:
- Re: how to rename variables?
- From: Giovanni Gherdovich
- Re: how to rename variables?
- References:
- how to rename variables?
- From: Giovanni Gherdovich
- how to rename variables?
- Prev by Date: how to rename variables?
- Next by Date: Re: Prolog doesn't give multiple solutions to my goal.
- Previous by thread: how to rename variables?
- Next by thread: Re: how to rename variables?
- Index(es):