How to replace a term to the inside of an other term?
- From: "Mika" <miky821@xxxxxxxx>
- Date: 24 May 2006 04:09:36 -0700
Hello, I must define the following procedure:
substitute(T,TOLD,TNEW,T1)
T1 is the term in which the occurrences of term ground TOLD they have
been replaced with TNEW
ex. substitute(f(a,g(a)),a,b,T).
T= f(b,g(b))
.
- Follow-Ups:
- Prev by Date: Re: String is not string in SWI prolog , part/2.
- Next by Date: Re: String is not string in SWI prolog , part/2.
- Previous by thread: read doesn't read back from writeq
- Next by thread: Re: How to replace a term to the inside of an other term?
- Index(es):