e.g. here `else` is not required ``` enum class Fo...
# getting-started
e
e.g. here
else
is not required
Copy code
enum class Foo {
    ONE, TWO, THREE;

    fun convert(): String = when (this) {
        ONE -> "one"
        TWO -> "two"
        THREE -> "three"
    }
}