My attempt to understand and create functional lenses in javascript. There are some laws and de facto standards
- get after set should return the modified part
- set after get should return the unmodified whole
- set after set should overwrite the part
- create should take a getter and a setter
- lenses should be left to right composable
- there should be a
view
,set
andover
functions to work with lenses