You could even define a function that does that: `...
# getting-started
r
You could even define a function that does that:
fun MyEnumByRaw(raw: Int) = MyEnum.values().filter { it.rawValue == raw }.firstOrNull()
and run it with
MyEnumByRaw(20)