On Thu 20/01/11 13:06 , kony kulakow...@gmail.com sent: > Hi, > > I am looking for something which operates similarly as doseq but in > case of more than one binding traverses every sequence only one. I.e. > > wanted result: > > (doseq [x '(A B C) y '(1 2 3)] (println (list x y))) > > should produce: > > (A 1) > (B 2) > (C 3)
map supports multiple arguments: user=> (map vector '(A B C) '(1 2 3)) ([A 1] [B 2] [C 3]) So you can use map to bond together the two collections, then use a destructuring doseq to print them out: user=> (doseq [[x y] (map vector '(A B C) '(1 2 3))] (println (list x y))) (A 1) (B 2) (C 3) -- Dave -- 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