In clojure map works like zipWith.
So you can pass to it vector if you want just plain zip: (map vector
colls)

That makes making a special named function unnesessary.


On Mar 13, 6:55 am, Marmaduke <mmwood...@gmail.com> wrote:
> Hello,
>
> I'm new to Clojure, but in other languages, zip is a workhorse, and I
> didn't find it, so I
>
> (defn zip [& ss]
>   (partition (count ss) (apply interleave ss)))
>
> but because I didn't find it, I am suspicious: is there a better way?
>
> Marmaduke
>
> ps. As a first-poster: thanks to Rich Hickey and Stuart Halloway for
> the language and the book, respectively.

-- 
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

Reply via email to