krangl / krangl / kotlin.Array / mapNonNull

mapNonNull

fun <T, R> Array<T?>.mapNonNull(expr: (T) -> R?): List<R?>

Allows to process a list of null-containing elements with an expression. NA will be kept where they were in the resulting table.