On this page:
Lenses
6.2.901.900

Lenses

Jack Firth <jackhfirth@gmail.com>
and Alex Knauth <alexander@knauth.org>

 (require lens) package: lens

This library includes functions and forms for working with lenses. A lens is a value that operates on some small piece of a larger structure. Think of them as a more general representation of getters and setters in object-oriented languages.

source code: https://github.com/jackfirth/lens

This library is stable, backwards compatibility will be maintained. For experimental features see unstable/lens.

    1 Core Lens Forms

      1.1 Lens Construction

      1.2 Viewing and Setting

      1.3 Lens Laws

      1.4 Transforming Values With Lenses

      1.5 Lens Contracts

    2 Joining and Composing Lenses

    3 Pair and List Lenses

      3.1 Pair lenses

      3.2 List lenses

      3.3 Association List Lenses

    4 Hash Lenses

    5 Struct Lenses

    6 Vector lenses

    7 String Lenses

    8 Stream Lenses

    9 Dict lenses

    10 Applicable lenses

(part "unstable/lens")