Hi everyone, I'm working with awt to do create an image renderer. This is obviously an application where side effects are desired. My first attempt was this:
(map #(form-with-side-effects %) a-list) This didn't do what I expected. After a little while, I found the doseq macro. I re-wrote my code like this: (doseq [atom a-list] (form-with-side-effects atom)) And now everything works great. What I don't understand is why the doseq macro is required instead of the mapping operation. Could somebody explain why Clojure has this different form for functions that have side effects? Sean --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---