[plt-scheme] Newbie map question
You got it. :)
Robby
At Sat, 1 Jan 2005 21:35:55 +0100, Francisco Jesús Martínez Serrano wrote:
> Ok, silly me.
>
> (define map+
> (lambda vecs
> (apply map + vecs)))
>
> Many thanks.
>
> On Thu, 30 Dec 2004 08:11:02 -0600, Robby Findler <robby at cs.uchicago.edu> wrote:
> > (map +) is not what you want. That means "apply map to one argument,
> > +". But map doesn't take just one argument (as the error message
> > informs you).
> >
> > Apply takes two arguments (well, it takes more in truth, but you can
> > ignore that). The first argument is a function you want to apply and
> > the second is a list of arguments you want to apply it to. In your
> > case, I think you want map to be the first argument and you need to
> > build a list of the arguments to map.
> >
> > After you get that working, I'd suggest going to read the manual on
> > what apply's other arguments do.
> >
> > Robby
> >