Skip to content

Add prisms or other functionality that tests a lens's applicability #299

@kstrafe

Description

@kstrafe

Lenses can sometimes fail:

(lens-view (hash-ref-lens 'b) #hash((a . 0)))

This is especially troublesome for composed lenses that act on deeply nested structures. I'd love there to be a sort of lens-test? or lens-correct? to test a lens on some data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions