-
Notifications
You must be signed in to change notification settings - Fork 1
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
reconsider the return type for set operations #26
Comments
Here's some prior art. I'm considering some popular and some interesting languages, libraries where there is no stdlib support. To my suprise, many implementations of multiset don't appear to implement set operations at all and instead actually implement counters, dictionaries, or maybe just Languages that return [&T] or similar:
languages that return (&t count) or similar:
languages that return Multiset: languages thet implement subset, but not union, intersect, etc.:
could not find:
|
A couple notes as I reconsider this --
|
Matklad suggests intersection, union, and other set operations should return
(&T, usize)
instead of just&T
.de16931#diff-b1a35a68f14e696205874893c07fd24fdb88882b47c23cc0e0c80a30c7d53759R887
The text was updated successfully, but these errors were encountered: