toPrimitives

fun Array<Double?>.toPrimitives(replaceNull: Double = 0.0): DoubleArray

Converts any null values to replaceNull. For Array use toDoubleArray()

Return

the primitive array

Parameters

replaceNull

the value to replace any nulls


fun List<Double?>.toPrimitives(replaceNull: Double = 0.0): DoubleArray

Converts any null values to replaceNull. For List use toDoubleArray()

Return

the primitive array

Parameters

replaceNull

the value to replace any nulls


fun Array<Int?>.toPrimitives(replaceNull: Int = 0): IntArray

Converts any null values to replaceNull. For Array use toDoubleArray()

Return

the primitive array

Parameters

replaceNull

the value to replace any nulls


fun List<Int?>.toPrimitives(replaceNull: Int = 0): IntArray

Converts any null values to replaceNull. For List use toDoubleArray()

Return

the primitive array

Parameters

replaceNull

the value to replace any nulls


fun Array<Long?>.toPrimitives(replaceNull: Long = 0): LongArray

Converts any null values to replaceNull. For Array use toDoubleArray()

Return

the primitive array

Parameters

replaceNull

the value to replace any nulls


fun List<Long?>.toPrimitives(replaceNull: Long = 0): LongArray

Converts any null values to replaceNull. For List use toDoubleArray()

Return

the primitive array

Parameters

replaceNull

the value to replace any nulls