-
Notifications
You must be signed in to change notification settings - Fork 18k
proposal: slices: add Intersect and IntersectFunc #64539
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
Comments
This is O(N^2). It should not be in the standard library. |
So only less than O(N) are allowed in the standard library so that it doesn't affect the performance? EDIT: I wonder if this can be optimized further because what I wrote is just the prototype. |
They belong in a set package. |
Yes, I saw that earlier but I didn't see it being further discussed so I thought no conclusion was drawn. |
It's on hold pending the completion of the iterator design (#61897). |
Proposal Details
Utility functions like
Intersect
andIntersectFunc
forslices
packages will be handy for several cases.The text was updated successfully, but these errors were encountered: