inline fun <T, R, C : MutableCollection<in R>> Iterable<T>.mapTo( destination: C, transform: (T) -> R ): C
Applies the given transform function to each element of the original collection and appends the results to the given destination.
inline fun <K, V, R, C : MutableCollection<in R>> Map<out K, V>.mapTo( destination: C, transform: (Entry<K, V>) -> R ): C
Applies the given transform function to each entry of the original map and appends the results to the given destination.
inline fun <T, R, C : MutableCollection<in R>> Array<out T>.mapTo( destination: C, transform: (T) -> R ): C
inline fun <R, C : MutableCollection<in R>> ByteArray.mapTo( destination: C, transform: (Byte) -> R ): C
inline fun <R, C : MutableCollection<in R>> ShortArray.mapTo( destination: C, transform: (Short) -> R ): C
inline fun <R, C : MutableCollection<in R>> IntArray.mapTo( destination: C, transform: (Int) -> R ): C
inline fun <R, C : MutableCollection<in R>> LongArray.mapTo( destination: C, transform: (Long) -> R ): C
inline fun <R, C : MutableCollection<in R>> FloatArray.mapTo( destination: C, transform: (Float) -> R ): C
inline fun <R, C : MutableCollection<in R>> DoubleArray.mapTo( destination: C, transform: (Double) -> R ): C
inline fun <R, C : MutableCollection<in R>> BooleanArray.mapTo( destination: C, transform: (Boolean) -> R ): C
inline fun <R, C : MutableCollection<in R>> CharArray.mapTo( destination: C, transform: (Char) -> R ): C
Applies the given transform function to each element of the original array and appends the results 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/map-to.html