Rob Murdock
07/08/2020, 2:04 PMRob Murdock
07/08/2020, 2:19 PMDominaezzz
07/09/2020, 12:40 AMRob Murdock
07/09/2020, 2:10 PMdata class Thing(val first: Int, val second: String)
val thing = Thing(1, "two")
thing.withData { first: Int, second: String ->
//no parens needed to destructure
}
As in theory it would be trivial to add to the class generated by the ‘data’ keyword.AdrianRaFo
07/09/2020, 6:16 PMRob Murdock
07/09/2020, 6:52 PMevanchooly
07/10/2020, 2:51 PM