flatMapIndexedTo

Common
JVM
JS
Native
1.4
@JvmName("flatMapIndexedIterableTo") inline fun <T, R, C : MutableCollection<in R>> Array<out T>.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, T) -> Iterable<R>
): C

(source)
@JvmName("flatMapIndexedIterableTo") inline fun <R, C : MutableCollection<in R>> ByteArray.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, Byte) -> Iterable<R>
): C

(source)
@JvmName("flatMapIndexedIterableTo") inline fun <R, C : MutableCollection<in R>> ShortArray.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, Short) -> Iterable<R>
): C

(source)
@JvmName("flatMapIndexedIterableTo") inline fun <R, C : MutableCollection<in R>> IntArray.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, Int) -> Iterable<R>
): C

(source)
@JvmName("flatMapIndexedIterableTo") inline fun <R, C : MutableCollection<in R>> LongArray.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, Long) -> Iterable<R>
): C

(source)
@JvmName("flatMapIndexedIterableTo") inline fun <R, C : MutableCollection<in R>> FloatArray.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, Float) -> Iterable<R>
): C

(source)
@JvmName("flatMapIndexedIterableTo") inline fun <R, C : MutableCollection<in R>> DoubleArray.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, Double) -> Iterable<R>
): C

(source)
@JvmName("flatMapIndexedIterableTo") inline fun <R, C : MutableCollection<in R>> BooleanArray.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, Boolean) -> Iterable<R>
): C

(source)
@JvmName("flatMapIndexedIterableTo") inline fun <R, C : MutableCollection<in R>> CharArray.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, Char) -> Iterable<R>
): C

(source)
@JvmName("flatMapIndexedSequenceTo") inline fun <T, R, C : MutableCollection<in R>> Array<out T>.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, T) -> Sequence<R>
): C

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

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

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

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

(source)

Appends all elements yielded from results of transform function being invoked on each element and its index in the original array, to the given destination.

Common
JVM
JS
Native
1.4
@JvmName("flatMapIndexedIterableTo") inline fun <T, R, C : MutableCollection<in R>> Iterable<T>.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, T) -> Iterable<R>
): C

(source)
@JvmName("flatMapIndexedSequenceTo") inline fun <T, R, C : MutableCollection<in R>> Iterable<T>.flatMapIndexedTo(
    destination: C,
    transform: (index: Int, T) -> Sequence<R>
): C

(source)

Appends all elements yielded from results of transform function being invoked on each element and its index in the original collection, to the given destination.