toOptional
toOptional<
S,A>(lens):Optional<S,A>
Defined in: Core/Lens.ts:141
Converts a Lens to an Optional. Every Lens is a valid Optional whose get always returns Some.
Type Parameters
Section titled “Type Parameters”S
A
Parameters
Section titled “Parameters”Lens<S, A>
Returns
Section titled “Returns”Optional<S, A>