mapTo
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
@ExperimentalUnsignedTypes inline fun <R, C : MutableCollection<in R>> UIntArray.mapTo(
destination: C,
transform: (UInt) -> R
): C
@ExperimentalUnsignedTypes inline fun <R, C : MutableCollection<in R>> ULongArray.mapTo(
destination: C,
transform: (ULong) -> R
): C
@ExperimentalUnsignedTypes inline fun <R, C : MutableCollection<in R>> UByteArray.mapTo(
destination: C,
transform: (UByte) -> R
): C
@ExperimentalUnsignedTypes inline fun <R, C : MutableCollection<in R>> UShortArray.mapTo(
destination: C,
transform: (UShort) -> R
): C
Applies the given transform function to each element of the original array and appends the results to the given destination.
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.