If you want to check if something is an array: (.. x getClass isArray)
David On Sun, Jul 1, 2012 at 11:35 AM, Warren Lynn <[email protected]> wrote: > Somebody asks me to add handling of Java array in clj-cc/last. But I am > confused what will be the type of Java array in Clojure. Fox example: > > (type (.toCharArray "Clojure")) => [C ;; Note: it looks like > garbage. but that is what I actually got > (isa? (type (.toCharArray "Clojure")) java.util.Arrays) => false > > Can someone point out why I am not seeing what I expect? Thanks. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > 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 [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
