[plt-scheme] Question about map

From: Marco Morazan (morazanm at gmail.com)
Date: Thu Jul 3 15:28:38 EDT 2008

Version:

Welcome to DrScheme, version 4.0.1tsrj2008-1 [3m].
Language: Essentials of Programming Languages (2nd ed.); memory limit:
128 megabytes.

My code works fine in v372.

Marco

On Thu, Jul 3, 2008 at 3:20 PM, Robby Findler <robby at cs.uchicago.edu> wrote:
> Someone else might be able to guess the right thing here, but I'd need
> more info to help. For example, this works fine:
>
>  #lang scheme
>  (define localdefs (list '(lambda (x) x)))
>  (map caadr localdefs)
>
> Robby
>
> On Thu, Jul 3, 2008 at 2: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.