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

Re: zipping sequences

2010-08-09 Thread Meikel Brandmeyer
Hi, On Aug 9, 12:21 pm, Nicolas Oury nicolas.o...@gmail.com 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

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 m...@kotka.de wrote: Hi, On Aug 9, 12:21 pm, Nicolas Oury nicolas.o...@gmail.com wrote: (zip [a1 an] [b1 bn]) = [[a1 b1] . [an bn]] (map vector [a1 ... an] [b1 ... bn]) Sincerely Meikel