it there an idiomatic way to copy a structure, but...
# announcements
b
it there an idiomatic way to copy a structure, but changing a single field
oh I can just stick the altered value inside the
copy()
cant I
👍 2
🤦 1
y
You can checkout this if you have too deep data class structure https://ivanmorgillo.com/2020/10/28/how-to-fix-the-pain-of-modifying-kotlin-nested-data-classes/
👍 1
b
oooh that is just the thing; we are already using arrow-kt anyway
👍 1
thanks