View Source API Reference Lens 2 v0.2.1
Modules
Use
this module for convenience.
Operations that work with lenses. The API is close to the familiar get
, put
, update
one.
Aggregates all the lenses in
Lens2.Lenses.Combine
,
Lens2.Lenses.Enum
,
Lens2.Lenses.Filter
,
Lens2.Lenses.Indexed
, and
Lens2.Lenses.Keyed
.
Lenses that combine lenses to get new lenses.
Lenses that work on Enumerable
and Collectable
containers.
Lenses that reduce a set of pointers into a smaller set of pointers.
Lenses specific to lists, plus one that works on both lists and tuples.
Lenses helpful for working with structs, maps, and types implementing the Access
behaviour.
Lenses that support duplicate keys in keyword lists.
Lenses that work with MapSet
structures.
Two ways of defining named lens-making functions that improve on def
.
This is a copy of the TypedStructLens package, tweaked to work with Lens2. Instead of a reference to a top-level module, you have to use an alias, but that's all.
Mix Tasks
Is the data type smart about "put" operations that produce identical structures?
Crude timings that compare Access and Lens operations on a struct+map container.
Crude timings that compare Access and Lens operations on a struct+map container.