The set of Java array types is open. You can however extend array classes as you encounter them at runtime.
http://dosync.posterous.com/51626638 David On Sun, Jul 1, 2012 at 1:17 PM, Warren Lynn <wrn.l...@gmail.com> wrote: > > So if I want to extend a protocol to all Java arrays, is there a single type > I can use? Sounds like not. So I need to extend the protocols to char > arrays, int arrays and etc? > > On Sunday, July 1, 2012 12:20:19 PM UTC-4, dennis wrote: >> >> (type (.toCharArray "Clojure")) is a class, [C means an array of >> character,it is the internal name in bytecodes. >> >> java.util.Arrays is not a parent of all arrays,it is just an array utility >> class has many static methods. >> >> If you want to check if something is an array,as david said using: >> >> (.. x getClass isArray) >> >> user=> (.isArray (type (.toCharArray "Clojure"))) >> true >> >> >> >> > -- > 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 -- 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