andThenOptional
andThenOptional<
A,B>(inner): <S>(outer) =>Optional<S,B>
Defined in: Core/Lens.ts:123
Composes a Lens with an Optional, producing an Optional. Use when the next step in the focus is optional (may be absent).
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”Optional<A, B>
Returns
Section titled “Returns”<
S>(outer):Optional<S,B>
Type Parameters
Section titled “Type Parameters”S
Parameters
Section titled “Parameters”Lens<S, A>
Returns
Section titled “Returns”Optional<S, B>