(.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
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
(.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