How do I call a Clojure function that takes a two-dimensional array of strings from Java?

Basically the question says it all.

When I declare a function signature in a gen class, what type do I put for a 2D array of strings?

[myFunc [XXXX] ReturnType]

What did I set for XXXX?

Update: after @Mark Topolnik's suggestion, I'm trying

#^{:static true} [myFunc [ ^"[[Ljava.lang.String;" ] clojure.lang.IFn] 

in my declaration and I come back

java.lang.RuntimeException: Unmatched delimiter: ]

runtime exception when I try to compile it.

Update 2: Fixed by removing ^ from the specified string. (This is in the context of declaring function signatures in a gen class, so ^ is supposedly not necessary.)

+4
source share
1 answer

Clojure, String . :

[myFunc ["[[Ljava.lang.String;"] ReturnType]
+2

All Articles