I tried this but it didn't work. (identical? (array 1 2) (foo)) Did you 
mean this?

On Tuesday, September 18, 2012 5:08:11 PM UTC-4, David Nolen wrote:
>
> On Tue, Sep 18, 2012 at 4:54 PM, Andrew <ach...@gmail.com <javascript:>> 
> wrote: 
> > In my ClojureScript unit tests, the following doesn't evaluate to true 
> (= 
> > (array 1 2) (foo)) even though all foo does is return (array 1 2). 
> > 
> > What should I do differently? 
>
> Those are primitive mutable arrays and are compared via identity. 
>
> David 
>

-- 
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