Intersect, Union, and Except Methods
Learn how to find the intersection, union, and difference between two collections.
We'll cover the following...
We'll cover the following...
How to find the intersection between two collections
The Intersect method finds the common elements between two collections.
Let’s find the movies we both have watched and rated in our catalogs.
Notice that, this time, we have two lists of movies, mine and yours, with the ones I’ve watched and the ones I guess you have watched, respectively.
To find the movies we both have seen (the intersection between our ...