dimsuz
05/08/2023, 6:09 PMarrow-optics or is there a nice way to do setNullable inside a copy helper?
fun Person.moveToAmsterdamCopy(): Person = copy {
Person.address.city.name setNullable "Amsterdam" // FAIL, no infix setNullable here
Person.address.city.name.setNullable(this, "Amsterdam") // FAIL, "this" is a Copy<> instance
Person.address.city.country set "Netherlands"
}dimsuz
05/08/2023, 6:12 PMsetNullable does. I want to do Person.name set null , but it doesn't accept nullable values for some reason. Off to read the docs a bit more 🙂dimsuz
05/08/2023, 6:13 PMnullableName lens.