Hi! Do I miss something in `arrow-optics` or is th...
# arrow
d
Hi! Do I miss something in
arrow-optics
or is there a nice way to do
setNullable
inside a
copy
helper?
Copy code
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"
}
oh, wait I must've misread what
setNullable
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 🙂
Solved found
nullableName
lens.