oAndThenO<C> method

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

Implementation

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