-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Chain equals & hashCode methods (via Chain.iterator?) #2540
Comments
So, for this do we want a |
You can't define |
I think that it should be pretty straightforward to implement |
🙋🏻♂️ Chiming in with a vote — this was causing my ScalaTest
So it looks like somehow the equality check works for two or fewer elements, but not for three. Obviously I will change my test to use |
👍 on @ceedubs' suggestion. |
I'll give this a try. |
#2690 submitted for this |
Currently
Chain[A]
only defines===
operator and therefore different Chain instances with "same" contents are not.equals
to each other:Not only this leads to confusion, but also could lead to bugs if
Chain[A]
used inSet
or asMap
keys, or inEq.fromUniversalEquals
.The text was updated successfully, but these errors were encountered: