eAndThen<C> method

EitherLens<A, C, E> eAndThen<C>(
  1. Lens<B, B, C, C> otherLens
)

Implementation

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