Combining getters and setters for great glory This is another FP-inspired blogpost, this time about lenses. Thereâs a lot of literaturearound lenses, but I wanted to show some simple examples. Sometimes, you have a set of data (this could be anything, from a struct to a Core Data database, or a webservice), and you want to create a view on that data. For example, suppose you have a value of type P
{{#tags}}- {{label}}
{{/tags}}