You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However this is not very performant, as we are iterating each set multiple times. Thus a performant method could be implemented. The name fullIntersection is just a placeholder, I'm sure there is a better name for this.
As an added bonus we could even take this one step further and have a fullIntersectionBy variant. In most cases this would be much more useful:
When computing the set differences its very common to need access to all "areas" of a set intersection:
This can be easily implemented with:
However this is not very performant, as we are iterating each set multiple times. Thus a performant method could be implemented. The name
fullIntersection
is just a placeholder, I'm sure there is a better name for this.As an added bonus we could even take this one step further and have a
fullIntersectionBy
variant. In most cases this would be much more useful:Since List also has the intersect method we could also add it directly there:
The text was updated successfully, but these errors were encountered: