[plt-scheme] Question about map
Robby-
Marco failed to indicate what language is working in.
I was able to create a similar problem this way:
#lang r5rs
(map caadr '(lambda (x) x))
-Felix
On Jul 3, 2008, at 3:20 PM, Robby Findler 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
>>
>>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme