-
Notifications
You must be signed in to change notification settings - Fork 172
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 more Set methods #4225
Comments
➤ Yavor Georgiev commented: [~simon.ulsnes] what's your take, can these be implemented? |
➤ Simon Ulsnes commented: Yes, those are very easy to implement. Strict sub-/superset can be implemented as just checking up front whether the size is the same, and if it is, return false. Set-equals is also trivial. |
➤ Nikola Irinchev commented: This is the case if the argument is also a set - for lists and results, which may contain duplicates, the size check is not sufficient to determine whether one is a strict sub/superset of the other. |
➤ Simon Ulsnes commented: |
Set specific methods that are needed to satisfy the SDK contracts:
assign_difference
assign_intersection
assign_symmetric_difference
assign_union
is_strict_subset
is_subset
is_strict_superset
is_superset
intersects
set_equals
- this should return whether the two collections contain the same unique elementsThe text was updated successfully, but these errors were encountered: