map Indexed Not Null
返回一个列表,其中包含将给定 transform 函数应用于此数组的每个元素及其索引的结果,并过滤掉 null 结果。
参考 kotlin.collections.mapIndexedNotNull
Return
一个列表,其中包含将给定 transform 函数应用于此数组的每个元素及其索引的结果,并过滤掉 null 结果
Parameters
R
结果元素类型
transform
用于将元素及其索引转换为结果元素的函数