mapTo

Common
JVM
JS
Native
1.0
inline fun < T , R , C : MutableCollection < in R > > Array < out T > . mapTo (
destination : C ,
transform : ( T ) -> R
) : C

(source)
inline fun < R , C : MutableCollection < in R > > ByteArray . mapTo (
destination : C ,
transform : ( Byte ) -> R
) : C

(source)
inline fun < R , C : MutableCollection < in R > > ShortArray . mapTo (
destination : C ,
transform : ( Short ) -> R
) : C

(source)
inline fun < R , C : MutableCollection < in R > > IntArray . mapTo (
destination : C ,
transform : ( Int ) -> R
) : C

(source)
inline fun < R , C : MutableCollection < in R > > LongArray . mapTo (
destination : C ,
transform : ( Long ) -> R
) : C

(source)
inline fun < R , C : MutableCollection < in R > > FloatArray . mapTo (
destination : C ,
transform : ( Float ) -> R
) : C

(source)
inline fun < R , C : MutableCollection < in R > > DoubleArray . mapTo (
destination : C ,
transform : ( Double ) -> R
) : C

(source)
inline fun < R , C : MutableCollection < in R > > BooleanArray . mapTo (
destination : C ,
transform : ( Boolean ) -> R
) : C

(source)
inline fun < R , C : MutableCollection < in R > > CharArray . mapTo (
destination : C ,
transform : ( Char ) -> R
) : C

(source)
@ExperimentalUnsignedTypes inline fun < R , C : MutableCollection < in R > > UIntArray . mapTo (
destination : C ,
transform : ( UInt ) -> R
) : C

(source)
@ExperimentalUnsignedTypes inline fun < R , C : MutableCollection < in R > > ULongArray . mapTo (
destination : C ,
transform : ( ULong ) -> R
) : C

(source)
@ExperimentalUnsignedTypes inline fun < R , C : MutableCollection < in R > > UByteArray . mapTo (
destination : C ,
transform : ( UByte ) -> R
) : C

(source)
@ExperimentalUnsignedTypes inline fun < R , C : MutableCollection < in R > > UShortArray . mapTo (
destination : C ,
transform : ( UShort ) -> R
) : C

(source)

Applies the given transform function to each element of the original array and appends the results to the given destination .

Common
JVM
JS
Native
1.0
inline fun < T , R , C : MutableCollection < in R > > Iterable < T > . mapTo (
destination : C ,
transform : ( T ) -> R
) : C

(source)

Applies the given transform function to each element of the original collection and appends the results to the given destination .

Common
JVM
JS
Native
1.0
inline fun < K , V , R , C : MutableCollection < in R > > Map < out K , V > . mapTo (
destination : C ,
transform : ( Entry < K , V > ) -> R
) : C

(source)

Applies the given transform function to each entry of the original map and appends the results to the given destination .