Mark,
In case you were asking how to call a Clojure function from Java
without wrapping it, check out clojure.lang.IFn and AFn.
For example, say you prefer to write a class in Java but need to
accept a Clojure fn as an argument in
one of the class methods:
public int callFromClojure(IFn clo
Mark,
If you use the #^{:static true} metadata on a :methods definition in a
gen-class spec for your class' implementing namespace, then those fns
appear as static functions in the generated Java class:
Clojure:
(ns bar.Foo
(:gen-class
:methods [#^{:static true} [stringLength [Strin
On Fri, Feb 13, 2009 at 11:19 AM, Laurent PETIT wrote:
> http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Invoking_Clojure_from_Java
>
> 2009/2/13 Mark Volkmann
>>
>> Can someone point me to documentation on how to invoke Clojure
>> functions from Java?
Thanks! That's interes
http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips#Invoking_Clojure_from_Java
2009/2/13 Mark Volkmann
>
> Can someone point me to documentation on how to invoke Clojure
> functions from Java?
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>
> >
>
--~--~-~--~~---
Can someone point me to documentation on how to invoke Clojure
functions from Java?
--
R. Mark Volkmann
Object Computing, Inc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group,