The Lens Pattern in TypeScript
functional.christmas
functional.christmas
Use of this lens pattern as given in the article seems to lead to a lot more boilerplate with lenses that have knowledge of object structure, which doesn't seem optimal. So I must be missing what this specific+compositional approach gives over using something like object-path-immutable. Perhaps they are two approaches for two different situations?