optics.js
optics.js copied to clipboard
get/set lenses (for Immutable.js, among others)
Stealing a great idea from partial.lenses, if we provide a special lens which simply calls get and set on the object, we can easily interoperate with Immutable.js without dependencies!
This would also work for Map
We should also check that values works for all these. Otherwise, it should be as easy as changing the getter in values to [...obj.values()], so it works everywhere an iterator can be obtained.
Im new to opticsjs source code as well as lense 😬. Any pointer where should I look into 🤔?