[plt-scheme] Newbie map question

From: Francisco Jesús Martínez Serrano (franjesus at gmail.com)
Date: Sat Jan 1 15:35:55 EST 2005

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

Posted on the users mailing list.