I'm having trouble isolating a small test case. I call the following code in an update tick:
(let [prev' @prev state' @state] (let [rems (clojure.set/difference prev' state') adds (clojure.set/difference state' prev')] (reset! prev state') (assert (= (count rems) (count (set rems)))))) (prev and state hold sets of maps.) After running for a few minutes, the assert will fail. The 'rems' and 'adds' will report that their count is > 1, but when I try to access the elements there are either none or only one. What would cause a set to return an incorrect value for count? FWIW, the elements of the sets are maps, and one of the fields holds a mutable javascript array. That was my first suspicion, but the array isn't mutated in my code, and I use a memoized function to generate it (to preserve identity). I'm using [org.clojure/clojurescript "0.0-2202"]. -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.