oAndThen<C> method

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

Implementation

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