@bookwar @doctormo @fuzzychef
There are surely abstractions for which algebraic lenses can work wonders.
I would lean more in the direction of the previous post, however: approaches that apply •principles of design• but not •mathematical formalism• to API surface typically fare far, far better than the reverse.