I'd like to extend a Clojure protocol to deal with Java primitive arrays.
(defprotocol PVectorisable
(to-vector [a]))
(extend-protocol PVectorisable
??????
(to-vector [coll]
(Vectorz/create ^doubles coll))
java.util.List
... other implementations......)
Is this possible, and if so what needs to go in the extend-protocol definition above (in place of "??????")?