Multiple things: the internal type name for int arrays is [I
So you should try something like: (deftype T [^"[I" keys ] ....) then you are looking to overload equals and hashCode from the Object interface (deftype T [^"[I" keys ] Object (equals [x other] (java.util.Arrays/equals key (.key other))) ....) And replace other by ^T other, to prevent reflection. (You should actually check that it is of the right type, by using (identical? (type other) T). (instance? does not seem to work in its own deftype) ) Best, Nicolas. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en