[plt-scheme] Re: Question about map

From: Robby Findler (robby at cs.uchicago.edu)
Date: Thu Jul 3 15:25:49 EDT 2008

I think that you must be mixing languages that have mutable pairs with
languages that don't. It is hard to say how you're doing that but, for
example

  #lang scheme
  map

produces "map" not "mmap" whereas this:

  #!r6rs
  (import (rnrs))
  (display map)

shows that map is bound to the mutable map procedure.

Robby

On Thu, Jul 3, 2008 at 2:21 PM, Marco Morazan <morazanm at gmail.com> wrote:
> Ok, upon further investigation I see:
>
>> map
> #<procedure:mmap>
>>
>
> Is there a way to have the vanilla flavor map (other than writing it myself?).
>
> Marco
>
> On Thu, Jul 3, 2008 at 3:16 PM, Marco Morazan <morazanm at gmail.com> wrote:
>> Hi All,
>>
>> I am using v4.0.1.
>>
>> This code: (map caadr localdefs)
>>
>> Produces this error:
>>
>> mcar: expects argument of type <mutable-pair>; given #<undefined>
>>
>> My code does not use mcar anywhere. I must assume it has to do with
>> the implementation of map (?).
>>
>> Any pointers much appreciated.
>>
>> Cheers,
>>
>> Marco
>>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>


Posted on the users mailing list.