subtract

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

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

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

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

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

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