3 ms·
A "lens" that only provides a view of something is just a plain function. Prisms are first class constructors: a `Prism a b` can build a `b` from an `a`, or att
by hither_shores 4y ago
A "lens" that only provides a view of something is just a plain function. Prisms are first class constructors: a `Prism a b` can build a `b` from an `a`, or attempt to match on a `b` and `Maybe` get an `a` that could construct it.
- fho 4y agoHmm yes ... maybe the word "view" was not chosen well. It's more of a "there and back again" thing.