Declare array as return type in gen-class method declaration in Clojure.

Posted by Anton Kazennikov on Stack Overflow See other posts from Stack Overflow or by Anton Kazennikov
Published on 2010-03-07T23:37:05Z Indexed on 2010/03/08 7:36 UTC
Read the original article Hit count: 226

Filed under:

How to declare an array in method declaration in gen-class?

(ns foo.bar
(:gen-class
 :methods [[parseString [String Object] Object]]))

That works fine. But the return type is really an array. How I can declare that so Java can understand it?

© Stack Overflow or respective owner

Related posts about clojure