I hadn't thought of that, that's true indeed. Here are some other example using dictEquals. Do you think the d1==d2 short-circuit would still work in those cases?
dictEquals : Dict comparable b -> Dict comparable b -> Bool dictEquals d1 d2 = d1 == d2 || Dict.toList d1 == Dict.toList d2 -- Example 1 a = Dict.fromList [(0,"Alice"),(1,"Bob")] a' =Dict.insert 2 "Anna" a; a'' = Dict.remove 3 a'; -- a'' should be unchanged compared to a' isSame = dictEquals a' a''-- will this call fall back to evaluating Dict.toList d1 == Dict.toList d2 ? -- Example 2 a = Dict.fromList [(0,"Alice"),(1,"Bob")] a' =Dict.insert 3 "Anna" a; a'' = Dict.remove 4 a'; -- a'' should be unchanged compared to a' isSame = dictEquals a' a'' -- will this call fall back to evaluating Dict.toList d1 == Dict.toList d2 ? -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.