intersect
Returns a set containing all elements that are contained by both this array and the specified collection.
The returned set preserves the element iteration order of the original array.
To get a set containing all elements that are contained at least in one of these collections use union.
Since Kotlin
1.0Returns a set containing all elements that are contained by both this collection and the specified collection.
The returned set preserves the element iteration order of the original collection.
To get a set containing all elements that are contained at least in one of these collections use union.