[plt-scheme] should `map' reuse cons cells?

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Wed May 26 18:21:55 EDT 2004

Doug Orleans wrote:

> Bradd W. Szonye writes:
>  > That won't minimize garbage; indeed, it'll /create/ garbage. This MAP
>  > would need to create the results, compare them to the original list, and
>  > then throw them away if they match.
> 
> You're the third person to say this...  What am I missing?  My
> implementation (see previous post) creates no more cons cells than a
> naive implementation of `map', as far as I can tell.

It creates stack frames in stead.

-- 
Jens Axel Søgaard



Posted on the users mailing list.