>> Where I'm stuck >> is how to get access to the particle names, as I would in the above >> line of Java code.
The final bit, once you have an iterator over particles, would be: (fn [p] (.getName p)) To avoid the use of reflection, you might want explicit type annotations: (fn [#^Particle p] (.getName p)) As Lauri mentioned, you pass this to map. You can't just pass a Java method to map: Java methods are not first- class like Clojure functions. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---