filter Indexed To
abstract fun <C : MutableCollectionWrapper<in T>> filterIndexedTo(destination: C, predicate: (index: Int, T) -> Boolean): C
将此数组中满足给定谓词的所有元素添加到目标集合中,以及它们的索引。
参考 kotlin.collections.filterIndexedTo
Return
目标集合
Parameters
C
目标集合类型
destination
目标集合
predicate
用于测试元素的谓词