intersect

infix fun <T> Array<out T>.intersect(
    other: Iterable<T>
): Set<T>
(source)
infix fun ByteArray.intersect(
    other: Iterable<Byte>
): Set<Byte>
(source)
infix fun ShortArray.intersect(
    other: Iterable<Short>
): Set<Short>
(source)
infix fun IntArray.intersect(other: Iterable<Int>): Set<Int> (source)
infix fun LongArray.intersect(
    other: Iterable<Long>
): Set<Long>
(source)
infix fun FloatArray.intersect(
    other: Iterable<Float>
): Set<Float>
(source)
infix fun DoubleArray.intersect(
    other: Iterable<Double>
): Set<Double>
(source)
infix fun BooleanArray.intersect(
    other: Iterable<Boolean>
): Set<Boolean>
(source)
infix fun CharArray.intersect(
    other: Iterable<Char>
): Set<Char>
(source)

Returns a set containing all elements that are contained by both this set and the specified collection.

The returned set preserves the element iteration order of the original array.

infix fun <T> Iterable<T>.intersect(
    other: Iterable<T>
): Set<T>
(source)

Returns a set containing all elements that are contained by both this set and the specified collection.

The returned set preserves the element iteration order of the original collection.