[plt-scheme] Question about map
AFAICT, EoPL works fine with the basic example you're giving. I'm
still not able to divine what is going wrong:
Welcome to DrScheme, version 4.0.1.3-svn2jul2008 [3m].
Language: Essentials of Programming Languages (2nd ed.); memory limit:
128 megabytes.
> (map caadr (list '(lambda (x) x)))
(x)
>
Sorry if this is too much trouble for you to figure out yourself and
sorry that I'm not being much help. I'll someone else answer for a
while now.
Robby
On Thu, Jul 3, 2008 at 2:28 PM, Marco Morazan <morazanm at gmail.com> wrote:
> 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
>>>
>>>
>>
>
>