Hi, I would like to create a property on a data cl...
# android
a
Hi, I would like to create a property on a data class that acts like a method, and returns a concatenation of two other properties on the same data class. The following doesn’t work but gives you an idea of what I’m looking for:
Copy code
data class MyDataClass(val first: String, val second: String) {
  val third = "$first $second"  
}
Is that possible?