intersect
infix fun ShortArray.intersect(
other: Iterable<Short>
): Set<Short>
infix fun FloatArray.intersect(
other: Iterable<Float>
): Set<Float>
infix fun DoubleArray.intersect(
other: Iterable<Double>
): Set<Double>
infix fun BooleanArray.intersect(
other: Iterable<Boolean>
): Set<Boolean>
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.
Returns 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.