All,
I want to create a function that takes a symbol representing a java method and applies it to some object:
(user=> (defn f [m] (. "foo" (m)))
When I execute this, I get a result much different from what I expect
user=> (f getClass)
java.lang.IllegalArgumentException: No matching method found: m for class java.lang.String (NO_SOURCE_FILE:0)
2 questions:
1> why is the symbol m being called as the second arg of the . function instead of the value bound to m?
2> how would I actually do what I want to do?