Hi all! I'm new to Kotlin, and I was wondering if ...
# getting-started
s
Hi all! I'm new to Kotlin, and I was wondering if it's possible to create an enum instance from an internal field. For example...
Copy code
enum class MyEnum(val rawValue: Int) {
  FirstCase(10),
  SecondCase(20)
}
Is it possible to create an enum for this class from an integer of an unknown value?