> If you don't need the intermediate seq you can use doseq directly: > > (doseq [y (range 1999 2011) > w (range 1 53)] > (println "Year" y "Week" w))
That's really cool, I didn't know you can do that. I just looked over its implementation and it seems pretty complex but interesting, so now that's on my list of things to learn for today. :-) On Jul 7, 2010, at 11:44 AM, Meikel Brandmeyer wrote: > Hi, > > Am 07.07.2010 um 17:10 schrieb Nurullah Akkaya: > >> (doseq [[y w] (for [y (range 1999 2011) >> w (range 1 53)] [y w])] >> (println "Year " y "Week " w)) > > And just for the record: > > If you don't need the intermediate seq you can use doseq directly: > > (doseq [y (range 1999 2011) > w (range 1 53)] > (println "Year" y "Week" w)) > > 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