Re: zipping sequences

2010-08-09 Thread Nicolas Oury
Thank you very much, it works great.

On Mon, Aug 9, 2010 at 11:23 AM, Meikel Brandmeyer  wrote:
> Hi,
>
> On Aug 9, 12:21 pm, Nicolas Oury  wrote:
>
>> (zip [a1  an] [b1  bn]) = [[a1 b1] . [an bn]]
>
> (map vector [a1 ... an] [b1 ... bn])
>
> Sincerely
> Meikel
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: zipping sequences

2010-08-09 Thread Meikel Brandmeyer
Hi,

On Aug 9, 12:21 pm, Nicolas Oury  wrote:

> (zip [a1  an] [b1  bn]) = [[a1 b1] . [an bn]]

(map vector [a1 ... an] [b1 ... bn])

Sincerely
Meikel

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


zipping sequences

2010-08-09 Thread Nicolas Oury
Dear all,

I can't find a function in the library and don't see any easy way to write it.

I am looking for something like (zip & seqs)

such that (zip [a1  an] [b1  bn]) = [[a1 b1] . [an bn]]

Any function like that or easy way to construct it?

Best regards,

Nicolas.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en