getMethods

2011-06-23 Thread Antonio Recio
(.getMethods java.awt.Frame)) :let [method-name (.getName method)]] method-name) -- 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

Re: getMethods

2011-06-23 Thread Michael Wood
any.library). Which is the way to get it? (for [method (seq (.getMethods java.awt.Frame)) :let [method-name (.getName method)]] method-name) You can do the above like this: (map #(.getName %) (.getMethods java.awt.Frame)) And to turn it into a function, you just do this: (defn class-methods

Re: getMethods

2011-06-23 Thread Stuart Halloway
(.getMethods java.awt.Frame)) :let [method-name (.getName method)]] method-name) You can do the above like this: (map #(.getName %) (.getMethods java.awt.Frame)) And to turn it into a function, you just do this: (defn class-methods [class-name] (map #(.getName %) (.getMethods class