map Not Null To
abstract fun <R : Any, C : MutableCollectionWrapper<in R>> mapNotNullTo(destination: C, transform: (T) -> R?): C
将对原始可迭代对象中每个元素应用给定 transform 函数的结果添加到 destination 中, 但仅包含不为 null 的结果。
Return
destination,以便链式调用。
Parameters
destination
用于存储结果的 MutableCollectionWrapper。
transform
用于将每个元素转换为结果的函数。