flatMapIndexed

@JvmName(name = "flatMapIndexedIterable")
inline fun <R> CharSequence.flatMapIndexed(transform: (index: Int, Char) -> Iterable<R>): List<R>(source)

Returns a single list of all elements yielded from results of transform function being invoked on each character and its index in the original char sequence.

Since Kotlin

1.4

Samples