[plt-scheme] Question about map

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

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.