Skip to content

Specialized lenses #30

@bvkatwijk

Description

@bvkatwijk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions