W3cubDocs

/Kotlin

filterNot

inline fun <K, V> Map<out K, V>.filterNot(
    predicate: (Entry<K, V>) -> Boolean
): Map<K, V>

Returns a new map containing all key-value pairs not matching the given predicate.

The returned map preserves the entry iteration order of the original map.

inline fun <T> Iterable<T>.filterNot(
    predicate: (T) -> Boolean
): List<T>
inline fun <T> Array<out T>.filterNot(
    predicate: (T) -> Boolean
): List<T>
inline fun ByteArray.filterNot(
    predicate: (Byte) -> Boolean
): List<Byte>
inline fun ShortArray.filterNot(
    predicate: (Short) -> Boolean
): List<Short>
inline fun IntArray.filterNot(
    predicate: (Int) -> Boolean
): List<Int>
inline fun LongArray.filterNot(
    predicate: (Long) -> Boolean
): List<Long>
inline fun FloatArray.filterNot(
    predicate: (Float) -> Boolean
): List<Float>
inline fun DoubleArray.filterNot(
    predicate: (Double) -> Boolean
): List<Double>
inline fun BooleanArray.filterNot(
    predicate: (Boolean) -> Boolean
): List<Boolean>
inline fun CharArray.filterNot(
    predicate: (Char) -> Boolean
): List<Char>

Returns a list containing all elements not matching the given predicate.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/filter-not.html