Closed cfhammill closed 6 years ago
I think in addition to view/over we need modify (a snappier name could be chosen as well) to encapsulate the pattern
view
over
modify
over(d, lens, f(view(d, lens)))
Turns out that this is exactly over from lens, lset is just over with a constant function. Re-adding over
lens
lset
I think in addition to
view
/over
we needmodify
(a snappier name could be chosen as well) to encapsulate the patternover(d, lens, f(view(d, lens)))