[plt-scheme] mreverse!

From: praimon (praimon at gmail.com)
Date: Sat Jan 24 16:28:59 EST 2009

Thank you, Eli and David, for those pointers.
But if one DID write a destructive reverse in MY strange sense of it,
what would it look like? Like I said, my version is nutty looking, and
I'd like to see a good, simple coding.

regards,
praimon


On Sat, Jan 24, 2009 at 4:23 PM, David Van Horn <dvanhorn at ccs.neu.edu> wrote:
> praimon wrote:
>>
>> Okay, so I definitely don't understand the point of mreverse!
>
> (mreverse ls) creates as many cons cells as are in ls.
> (mreverse! ls) creates no cons cells.
>
> David
>


Posted on the users mailing list.