diego-gomez-olvera
11/30/2023, 10:27 AMdiego-gomez-olvera
11/30/2023, 10:28 AMKlitos Kyriacou
11/30/2023, 10:50 AMvalues() is if you need to call a function that takes an array of enums. If values() didn't exist, you'd have to use entries.toTypedArray(). However, I think such a use case would be extremely rare.ephemient
11/30/2023, 10:56 AMvalues() and entries.toTypedArray() construct a new Array<Enum>ephemient
11/30/2023, 10:57 AMentries if you are a library building with a newer Kotlin while targeting an older Kotlin's API, or expressly want to avoid kotlin-stdlib dependencies for shrinking purposes (e.g. https://jakewharton.com/shrinking-a-kotlin-binary/)