another solution is to make an extension ``` fun ...
# announcements
k
another solution is to make an extension
Copy code
fun <T : Any?> T.exhaustive(): T = this