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

后端 未结 2 816
温柔的废话
温柔的废话 2021-02-05 18:06

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

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

That wor

2条回答
  •  一向
    一向 (楼主)
    2021-02-05 18:34

    Try

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

提交回复
热议问题