We could generate specialized lenses for wrapper types, e.g. support a modifyEach on a Map.
Collections can have things like
CollectionLens<T>.find(Predicate<T> filter): OptionLens<T>
Design questions
- Will this require a lot of generic gymnastics or boilerplate generation?
- Are there alternative designs? e.g. adding something working on
Iterable?
- What types should be supported?
- Can it be extended with a module e.g. vavr module for vavr collection lenses?
We could generate specialized lenses for wrapper types, e.g. support a
modifyEachon aMap.Collections can have things like
Design questions
Iterable?