I would use something like this: (defn zip [& xss] (apply map vector xss))
(doseq [[x y] (zip [1 2 3] [11 22 33])] (println x y)) Most of the time I use parallel mapping directly. But in cases like this one I think the intention of the code is better expressed by the above separation of concerns. -Per On Sat, Sep 25, 2010 at 2:00 PM, HiHeelHottie <hiheelhot...@gmail.com> wrote: > > What are good ways to iterate through two seqs at once for side- > effects? > > This doesn't seem so great since I'm not interested in the collection > that's built by map. I also learned the hard way that map is lazy. > Hence, the dorun. > > (dorun (map #(println %1 %2) [1 2 3] [11 22 33])) > > -- > 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