How to use a lens library other than imperative programming?

What benefits do we get with a lens library in C or Python?

I get that state remains the same with the library of lenses, but from a practical point of view, how is it otherwise?

Examples would be very helpful.

EDIT:

What I really want to know is that having an immutable state is beneficial / disadvantageous for a lens library, for example. Can't we achieve better performance with a stateless lens?

+4
source share

Source: https://habr.com/ru/post/1530709/


All Articles