Try...

(.isArray (type (.toCharArray "Clojure"))) => true

On Sunday, July 1, 2012 9:35:38 AM UTC-6, Warren Lynn 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 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

Reply via email to