to Collection
将序列中的所有元素添加到指定的 MutableCollectionWrapper 中。
此函数类似于 Kotlin 标准库中的 toCollection
函数,但它使用 MutableCollectionWrapper
而不是原始的 MutableCollection
。
参考 kotlin.sequences.toCollection
Return
指定的 MutableCollectionWrapper,其中包含添加的元素。
Parameters
destination
用于存储结果的 MutableCollectionWrapper。