Join Slack
Powered by
Is there common way to get all values from a `KCla...
# multiplatform
d
darkmoon_uk
03/25/2023, 2:13 PM
Is there common way to get all values from a
KClass<T>
which is known to be enumerable (constrainted by
T : Enum<T>
) ? On JVM we can do
T::class.enumConstants
to get the
Array<T>
✅ 1
darkmoon_uk
03/25/2023, 2:25 PM
Yes, there is now a common
enumValues<T>()
function! 😁
9
Views
Open in Slack
Previous
Next