It sounds like the doseq is the macro you're looking for, e.g. (doseq [c my-components] (.setVisible c true))
On Thu, Apr 8, 2010 at 5:07 PM, strattonbrazil <strattonbra...@gmail.com>wrote: > What's the function to call java code on multiple java components? If > I have a sequence of Java swing components and I want to go through > and set the same properties for each one, I would use a for loop in > Java. If I were using immutable structs in clojure, I'd just a map > and just change the keys I'd want to change. Should I still use a map > if I don't care about what I'm returning and I just want to call set* > methods on each component? > > -- > 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<clojure%2bunsubscr...@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