enumValues

expect inline fun <T : Enum<T>> enumValues(): Array<T>(source)

Returns an array containing enum entries of the enum type T.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using kotlin.enums.enumEntries as a more efficient alternative returning an immutable list of enum entries.

Since Kotlin

1.1

See also

actual inline fun <T : Enum<T>> enumValues(): Array<T>(source)

Returns an array containing enum entries of the enum type T.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using kotlin.enums.enumEntries as a more efficient alternative returning an immutable list of enum entries.

Since Kotlin

1.1

See also

actual inline fun <T : Enum<T>> enumValues(): Array<T>(source)

Returns an array containing enum entries of the enum type T.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using kotlin.enums.enumEntries as a more efficient alternative returning an immutable list of enum entries.

Since Kotlin

1.1

See also

actual inline fun <T : Enum<T>> enumValues(): Array<T>(source)

Returns an array containing enum entries of the enum type T.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using kotlin.enums.enumEntries as a more efficient alternative returning an immutable list of enum entries.

Since Kotlin

1.3

See also

actual inline fun <T : Enum<T>> enumValues(): Array<T>(source)

Returns an array containing enum entries of the enum type T.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using kotlin.enums.enumEntries as a more efficient alternative returning an immutable list of enum entries.

Since Kotlin

1.8

See also

actual inline fun <T : Enum<T>> enumValues(): Array<T>(source)

Returns an array containing enum entries of the enum type T.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using kotlin.enums.enumEntries as a more efficient alternative returning an immutable list of enum entries.

Since Kotlin

1.8

See also