Does Optics have a shortcut to modify a value usi...
# arrow
d
Does Optics have a shortcut to modify a value using the object itself (or similar to kotlin's generated copy)?
w
Copy code
myObject.copy {
  MyClass.attribute1.transform { "$it-transformed" }
}
d
I just discovered that there's also an infix
set
! Thanks!
I wonder what the difference is..
Oh... it's to get the old value and transform it, nice!