LensModule
PackageFCQRS.Model
Summary
| Name | Signature | Synopsis |
|---|---|---|
| ofIsomorphism | Lens.ofIsomorphism (f, t) | Converts an isomorphism into a lens. |
| toValidated | Lens.toValidated (lens, lens) | Lift a standard Lens into a ValidatedLens with no validation. |
| toAsyncValidated | Lens.toAsyncValidated (lens, lens) | Lift a ValidatedLens into an AsyncValidatedLens with no asynchronous work. |
Converts an isomorphism into a lens.
Parameters
| Name | Type | Description |
|---|---|---|
| f | 'a -> 'b | |
| t | 'b -> 'a |
Returns
Lens<'a, 'b>
Lift a standard Lens into a ValidatedLens with no validation.
Parameters
| Name | Type | Description |
|---|---|---|
| lens | 'a -> 'b | |
| lens | 'b -> 'a -> 'a |
Returns
ValidatedLens<'a, 'b, 'e>