Join Slack
Powered by
it there an idiomatic way to copy a structure, but...
# announcements
b
Ben Hammond
11/02/2020, 11:00 AM
it there an idiomatic way to copy a structure, but changing a single field
Ben Hammond
11/02/2020, 11:01 AM
oh I can just stick the altered value inside the
copy()
cant I
👍 2
🤦 1
y
Yasin Kaçmaz
11/02/2020, 11:04 AM
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
Ben Hammond
11/02/2020, 11:07 AM
oooh that is just the thing; we are already using arrow-kt anyway
👍 1
Ben Hammond
11/02/2020, 11:07 AM
thanks
3
Views
Open in Slack
Previous
Next