inline fun <K, V, M : MutableMap<in K, in V>> Map<out K, V>.filterTo( destination: M, predicate: (Entry<K, V>) -> Boolean ): M
Appends all entries matching the given predicate into the mutable map given as destination parameter.
Return the destination map.
inline fun <T, C : MutableCollection<in T>> Iterable<T>.filterTo( destination: C, predicate: (T) -> Boolean ): C
inline fun <T, C : MutableCollection<in T>> Array<out T>.filterTo( destination: C, predicate: (T) -> Boolean ): C
inline fun <C : MutableCollection<in Byte>> ByteArray.filterTo( destination: C, predicate: (Byte) -> Boolean ): C
inline fun <C : MutableCollection<in Short>> ShortArray.filterTo( destination: C, predicate: (Short) -> Boolean ): C
inline fun <C : MutableCollection<in Int>> IntArray.filterTo( destination: C, predicate: (Int) -> Boolean ): C
inline fun <C : MutableCollection<in Long>> LongArray.filterTo( destination: C, predicate: (Long) -> Boolean ): C
inline fun <C : MutableCollection<in Float>> FloatArray.filterTo( destination: C, predicate: (Float) -> Boolean ): C
inline fun <C : MutableCollection<in Double>> DoubleArray.filterTo( destination: C, predicate: (Double) -> Boolean ): C
inline fun <C : MutableCollection<in Boolean>> BooleanArray.filterTo( destination: C, predicate: (Boolean) -> Boolean ): C
inline fun <C : MutableCollection<in Char>> CharArray.filterTo( destination: C, predicate: (Char) -> Boolean ): C
Appends all elements matching the given predicate to the given destination.
© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/filter-to.html