This message was deleted.
# stdlib
s
This message was deleted.
7
e
maybe `enumValueOfOrNull`/`enumValueAtOrNull` too?
5
j
you will find that caching your enums into an array in the campanion object sort of does both but also cures an endemic performance hit in more recent jvm's.
k
Well for JVM it will be perfectly fine. But I can imagine that for stdlib compatibility with other languages it may not fit very well. I thought about creating live template for generating this kind of functions but It will not make big difference for only few usages in project.