Re: substitution in a list

2007-01-23 Thread Luca Saiu
Ian Grant wrote: It would be a good idea to do it this way if the list of substitutions were much longer than the list where they are being made. But if the substitution list is short then looking up a symbol is relatively cheap compared to consing up the transformed list and reversing it, so it

Re: substitution in a list

2007-01-23 Thread Ian Grant
On Tue, 23 Jan 2007 12:44:33 +0100 Luca Saiu <[EMAIL PROTECTED]> wrote: > orianaparo wrote: > > Hi. I'm a newbie and I'm trying to write some programs in Guile. > > I'd like to know how I can perform a substitution in a list. > > I mean:I want to write a function that takes two arguments: a list >

Re: substitution in a list

2007-01-23 Thread Ian Grant
On Tue, 23 Jan 2007 12:20:34 +0100 "orianaparo" <[EMAIL PROTECTED]> wrote: > Hi. I'm a newbie and I'm trying to write some programs in Guile. > I'd like to know how I can perform a substitution in a list. > I mean:I want to write a function that takes two arguments: a list > (possibly nested) of s

Re: substitution in a list

2007-01-23 Thread Luca Saiu
orianaparo wrote: Hi. I'm a newbie and I'm trying to write some programs in Guile. I'd like to know how I can perform a substitution in a list. I mean:I want to write a function that takes two arguments: a list (possibly nested) of symbols > [e.g ((a (b c) d) a (f b))] and another list that indi

substitution in a list

2007-01-23 Thread orianaparo
Hi. I'm a newbie and I'm trying to write some programs in Guile. I'd like to know how I can perform a substitution in a list. I mean:I want to write a function that takes two arguments: a list (possibly nested) of symbols [e.g ((a (b c) d) a (f b))] and another list that indicate what sort of sub

Re: Gmp now working, but number.c:147 isinf declared implicitly.

2007-01-23 Thread Hugh Sasse
On Tue, 23 Jan 2007, Kevin Ryde wrote: > Hugh Sasse <[EMAIL PROTECTED]> writes: > > > > I'm stumped. And sun's native patch implementation chokes on this. > > Should have been ok. Change the lines manually, or checkout the cvs > "branch_release-1-8" if you're brave. bash-2.05$ cvs -z3 -d:pserv

Re: Gmp now working, but number.c:147 isinf declared implicitly.

2007-01-23 Thread Hugh Sasse
On Tue, 23 Jan 2007, Kevin Ryde wrote: > Hugh Sasse <[EMAIL PROTECTED]> writes: > > > > mov 0, %o1 > > callprintf, 0 > > Ah dear, thanks, gcc has optimized it out. I'll change the test > program to something like > > #include > volatile double x = 0.0; >