lets say I have this enum ``` enum class Color(val...
# announcements
p
lets say I have this enum
Copy code
enum class Color(val name: String) {
        RED("red"),
        GREEN("green"),
        BLUE("blue")
}
and I would like to have a function which tells me whether the name corresponds to any of the enum instances:
Copy code
isContainedInEnum("blue") == true
Any good way to do this? The syntax can be a bit different if needed.