Emil Aleborn
04/20/2023, 8:38 AMval a = a.copy(
b = a.b.copy(
c = a.b.c.copy(
d = a.b.c.d.copy(e = "Cumbersome update")
)
)
)
// Using ArrowKt optics
val a = A.b.c.d.e.modify(a) { "Slick update" }
Are there any better alternatives?CLOVIS
04/20/2023, 9:03 AMknthmn
04/20/2023, 9:17 AMEmil Aleborn
04/20/2023, 10:03 AMMarinJuricev
04/20/2023, 1:52 PM@optics
annotation is acceptable to you, Optics has an KSP plugin as well, you aren’t tied to just KAPT