arrayOfNulls

expect fun <T> arrayOfNulls(size: Int): Array<T?>(source)

Returns an array of objects of the given type with the given size, initialized with null values.

Since Kotlin

1.0

Throws

if the specified size is negative.

actual inline fun <T> arrayOfNulls(size: Int): Array<T?>(source)

Returns an array of objects of the given type with the given size, initialized with null values.

Since Kotlin

1.1
fun <T> arrayOfNulls(size: Int): Array<T?>(source)

Returns an array of objects of the given type with the given size, initialized with null values.

Since Kotlin

1.0

Throws

if the specified size is negative.

actual inline fun <T> arrayOfNulls(size: Int): Array<T?>(source)

Returns an array of objects of the given type with the given size, initialized with null values.

Since Kotlin

1.3

Throws

if the specified size is negative.

actual inline fun <T> arrayOfNulls(size: Int): Array<T?>(source)

Returns an array of objects of the given type with the given size, initialized with null values.

Since Kotlin

1.8

Throws

if the specified size is negative.

actual inline fun <T> arrayOfNulls(size: Int): Array<T?>(source)

Returns an array of objects of the given type with the given size, initialized with null values.

Since Kotlin

1.8

Throws

if the specified size is negative.