So, let's say I have this abstract class in Java named MyFunction, that has an abstract evaluate method.
To use this in clojure, I can do:
(def java-function
(proxy [MyJavaFunction] []
(evaluate [x]
(* x 2))))
And then call it with:
(.evaluate java-function 3)
returning
; => 6
What would be a nice way of turning the above into something more clojure:
(java-function 3)
that would also be returning
; => 6