mapNotNull

inline fun <T> List<T>.mapNotNull(transform: (T) -> Int?): IntList(source)
inline fun <T> List<T>.mapNotNull(transform: (T) -> Long?): LongList(source)
inline fun <T> List<T>.mapNotNull(transform: (T) -> Float?): FloatList(source)
inline fun <T> List<T>.mapNotNull(transform: (T) -> Double?): DoubleList(source)

Returns a list containing only the non-null results of applying the given transform function to each element in the original list.