Lens has this:
e & lbl .~ value
It's not an in-place update like `e.lbl = value`. e & lbl .~ value
It's not an in-place update like `e.lbl = value`. a.b.c.d
but a write is: let a = {a with b = { a.b with c = { a.b.c with d = 5 } } } }
which is much much more verbose than the OO/imperative: a.b.c.d = 5 a & b.c.d .~ 5
To construct a new version of `a` where those nested fields have the new value 5.Or for an in-place update in a context where that is allowed,
a.b.c.d .= 5
The lens concept is incredibly nice.