anyway, here's an out-of-the-box solution involvin...
# announcements
k
anyway, here's an out-of-the-box solution involving a factory method:
Copy code
data class Person private constructor(val name: String) {
    companion object {
        operator fun invoke(s: String) = Person(s.toUpperCase())
    }
}