flatMapTo

abstract fun <R, C : MutableCollectionWrapper<in R>> flatMapTo(destination: C, transform: (PT) -> Iterable<R>): C

将每个元素转换为一个 Iterable,并将结果添加到目标集合中.

参考 kotlin.collections.flatMapTo

Return

目标集合

Parameters

destination

目标集合

transform

用于将每个元素转换为 Iterable 的函数