scsh-users
[Top] [All Lists]

Re: map function (tail recursive version)

To: scsh-users@scsh.net
Subject: Re: map function (tail recursive version)
From: "Andrew Koenig" <ark@acm.org>
Date: Sat, 24 Apr 2004 16:54:43 +0200 (MST)
List-id: <scsh-users.list-id.scsh.net>
Old-date: Sat, 24 Apr 2004 14:53:53 GMT
Organization: AT&T Worldnet
"aTorres" <alexis_o_torres@yahoo.com> wrote in message
news:178146e3.0404232345.434b204c@posting.google.com...
> I am new to scheme and am trying to implement useful recursive
> functions in to a tail recursive one. So far everything was ok, but
> now I am having trouble with making map a tail-recursive map.

You pretty much need to build up the result backwards, then reverse it.


<Prev in Thread] Current Thread [Next in Thread>