On Wednesday, October 3, 2012 1:56:19 PM UTC-4, Warren Lynn wrote: > > Out of curiosity, if we want to check if two collections has the same > structure/type and elements, namely if I want > (my-equal [1 2 3 4 '(5)] [1 2 3 4 [5]]) => false > (my-equal [1 2 3 4 [5]] [1 2 3 4 [5]]) => true > > Is there any convenient way to do that? >
Not really. You would have to define your own equality function. Then you have to make all the decisions about what should be considered "equal." For example, lists versus sequences, hash-maps versus array-maps. -S -- 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