flat Map Indexed To
abstract fun <R, C : MutableCollectionWrapper<in R>> flatMapIndexedTo(destination: C, transform: (index: Int, Char) -> Iterable<R>): C
将给定转换函数应用于原始 CharSequenceWrapper 的每个字符的结果,并将结果连接成一个列表,同时提供字符的索引,并将结果添加到目标 MutableCollectionWrapper 中。
参考 kotlin.sequences.flatMapIndexedTo
Return
目标 MutableCollectionWrapper。
Parameters
destination
目标 MutableCollectionWrapper。
transform
用于将每个字符转换为一个 Iterable 的函数,同时提供字符的索引。