andThenO<C> method

OptionLens<A, C> andThenO<C>(
  1. OptionLens<B, C> otherLens
)

Implementation

OptionLens<A, C> andThenO<C>(OptionLens<B, C> otherLens) => new OptionLens((a) => otherLens.get(get(a)), (a, c) => otherLens.set(get(a), c).map((b) => set(a, b)));