Hacker News new | ask | show | jobs
by akiselev 2107 days ago
Hard to say without knowing more about your usecase but normally I reach for lenses [1]

[1] https://github.com/obrok/lens

1 comments

Thanks, I haven't heard of lens before.

For others there's a blog post that introduces it: https://yapee.svbtle.com/nested-data-structures-with-lens