Hey guys, just wondering if there is a better way ...
# getting-started
z
Hey guys, just wondering if there is a better way to express this without the use of the secondary internalProperty value?
Copy code
enum class Example(private val internalProperty: String? = null) {
    A,
    B,
    C("Foo");
    val property: String by lazy { internalProperty ?: this.toString().toLowerCase() }
}