What are lenses used/useful for?
They offer a clean abstraction over data updates, and are never really “needed.” They just let you reason about a problem in a different way. In some imperative/”object-oriented” programming languages like C, you have the familiar concept of some collection of values (let’s call them “structs”) and ways to label each value in the collection … Read more