On Tue, Sep 18, 2012 at 9:20 PM, Andrew <ache...@gmail.com> wrote: > I tried this but it didn't work. (identical? (array 1 2) (foo)) Did you mean > this?
No. Sorry I meant that equality between two primitive arrays is based on whether they point to the same thing in memory. You want to test two arrays for equality it's best put them into something immutable and test those for equality - (= (into [] array1) (into [] array2)) You could also do something like the following if you're sure that no-one else has aliased the arrays - (= (seq array1) (seq array2)) 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