[Cs254f11] Wow. Basic question

Thomas Helmuth thGST at hampshire.edu
Wed Oct 26 06:39:47 EDT 2011


I'm not sure if there's an easier way, but I would do:

(map (fn [x y] [x y]) a b)

-Tom

On Tue, Oct 25, 2011 at 11:00 PM, Wm. Josiah Erikson <
wjerikson at hampshire.edu> wrote:

> I must be up too late.
>
> I have a list, a, and another list, b.
>
> I want to make a new list of two-item vectors that is both lists put
> together, so that it will look like ([(nth a 1)(nth b 1)][(nth a 2)(nth b
> 2)][(nth a 3)(nth b 3)])
>
> ...and so on. interleave doesn't quite do what I want. Maybe in the morning
> it will occur to me how to do this without a loop. If it's obvious to
> somebody else, will you help me out?
>
> Thanks in advance,
>
> --
> -----
> Wm. Josiah Erikson
> Network Engineer
> Hampshire College
> Amherst, MA 01002
>
> ______________________________**_________________
> Cs254f11 mailing list
> Cs254f11 at lists.hampshire.edu
> https://lists.hampshire.edu/**mailman/listinfo/cs254f11<https://lists.hampshire.edu/mailman/listinfo/cs254f11>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.hampshire.edu/pipermail/cs254f11/attachments/20111026/266033ac/attachment.htm>


More information about the Cs254f11 mailing list