Hi,

Am 27.04.2009 um 23:17 schrieb Boris Mizhen:

((comp #(Math/abs %) +) -3 -4) => 7

How can I pass a static java function to another function?

Here you already gave the answer to your question. Wrap it in
a Clojure fn/#().

A member function must be trickier because this must be supplied, but
perhaps a macro can be created that results in a function that would
capture this and call the member function appropriately ...

#(.someMethod an-object %)

Or passing in the object:

#(.someMethod %1 %2)

For apply and friends one needs a more elaborate way.
Search for "rhickey jcall site:paste.lisp.org".

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to