inline fun <T> Array<out T>.filter( predicate: (T) -> Boolean ): List<T>
inline fun ByteArray.filter( predicate: (Byte) -> Boolean ): List<Byte>
inline fun ShortArray.filter( predicate: (Short) -> Boolean ): List<Short>
inline fun IntArray.filter( predicate: (Int) -> Boolean ): List<Int>
inline fun LongArray.filter( predicate: (Long) -> Boolean ): List<Long>
inline fun FloatArray.filter( predicate: (Float) -> Boolean ): List<Float>
inline fun DoubleArray.filter( predicate: (Double) -> Boolean ): List<Double>
inline fun BooleanArray.filter( predicate: (Boolean) -> Boolean ): List<Boolean>
inline fun CharArray.filter( predicate: (Char) -> Boolean ): List<Char>
inline fun <T> Iterable<T>.filter( predicate: (T) -> Boolean ): List<T>
Returns a list containing only elements matching the given predicate.
inline fun <K, V> Map<out K, V>.filter( predicate: (Entry<K, V>) -> Boolean ): Map<K, V>
Returns a new map containing all key-value pairs matching the given predicate.
The returned map preserves the entry iteration order of the original map.
© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/filter.html