kotlin.collections.subtract

subtract

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

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.

infix fun <T> Array<out T>.subtract(
    other: Iterable<T>
): Set<T>
infix fun ByteArray.subtract(
    other: Iterable<Byte>
): Set<Byte>
登录查看完整内容