Partial Lens Families, offering a purely functional means to access and retrieve
an optional field transitioning from type B1
to type B2
in a record that is
simultaneously transitioning from type A1
to type A2
. scalaz.PLens is a
convenient alias for when A1 === A2
, and B1 === B2
.
The term ''field'' should not be interpreted restrictively to mean a member of a class. For example, a partial lens
family can address the nth element of a List
.
- Type Params
- A1
The initial type of the record
- A2
The final type of the record
- B1
The initial type of the optional field
- B2
The final type of the optional field
- See also
- Companion
- object
Value members
Abstract methods
Concrete methods
alias for product
alias for product
If the Partial Lens is null, then return the target object, otherwise run the function on its projection.
If the Partial Lens is null, then return the target object, otherwise run the function on its projection.
If the Partial Lens is null, then return the given default value.
If the Partial Lens is null, then return the given default value.
Modify the potential value viewed through the partial lens
Modify the potential value viewed through the partial lens
Two disjoint partial lenses can be paired
Two disjoint partial lenses can be paired
Two partial lenses that view a value of the same type can be joined
Two partial lenses that view a value of the same type can be joined