[plt-scheme] How to de-structure(?) a list for a call to map?

From: Grant Rettke (grettke at acm.org)
Date: Mon Nov 12 00:27:18 EST 2007

The result of a function I'm calling is a list of lists. I need to
pass those lists in as a call to map.

Here is a approximation:

(define *rows* '((1 2 3) (2 3 4) (3 4 5)))

Here is what I want to be able to do, though:

(map list '(1 2 3) '(2 3 4) '(3 4 5))

to produce

((1 2 3) (2 3 4) (3 4 5))

but using the contents of *rows* instead.

How would I go about doing so? I am missing the solution to this one,
repeatedly! :)


Posted on the users mailing list.