> Stuart, > > The documentation is clear (to me) about comparing numbers directly - that > part is fine. My question was about whether there is an equivalent of the new > == comparison that works on containers with floating-point numbers inside. > > I had guessed that == would recursively compare the contents with "loosely > typed" comparison, so that, for example (== [23] [23.0]) would be true, but > it does not. > > Is there an equality comparison that does this? I couldn't find any mention > of one in the numerics docs, but maybe missed it.
Gotcha. No, there isn't. I don't think doing this kind of comparison is a good idea, but I have been wrong before. If you need it, either a proposal on the wiki [1] or an incubator patch [2] would be fine. In this case, [2] is probably better. Getting things in incubator is *much* easier than getting things in Clojure. This should be where we start to feel the benefit of modular contrib. [1] http://dev.clojure.org/display/design/Release.Next+Planning [2] http://dev.clojure.org/jira/browse/CINCU Stuart Halloway Clojure/core http://clojure.com -- 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
