arrayOfNulls

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.

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
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.

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.

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.