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
I was playing with intersection to see if that would allow us to find the elements in common in two arrays, but I am confused to see it does the opposite: it merges the two collections by applying a union function ... so my questions / comments:
I think current implementation is actually an union or join, not an intersection, in Venn's terms. If I'm not mistaken, I'd suggest a rename ... although that'd be a breaking change. Moreover when I'd suggest to add a different intersection function ...
Can intersection or other function in m be use to obtain that the elements in common in two lists? Would you accept a PR for that? What name would you give it?
The text was updated successfully, but these errors were encountered:
I was playing with
intersection
to see if that would allow us to find the elements in common in two arrays, but I am confused to see it does the opposite: it merges the two collections by applying a union function ... so my questions / comments:union
or join, not an intersection, in Venn's terms. If I'm not mistaken, I'd suggest a rename ... although that'd be a breaking change. Moreover when I'd suggest to add a different intersection function ...intersection
or other function inm
be use to obtain that the elements in common in two lists? Would you accept a PR for that? What name would you give it?The text was updated successfully, but these errors were encountered: