lensOToE<A, B, E> function

EitherLens<A, B, E> lensOToE<A, B, E>(
  1. OptionLens<A, B> aLens,
  2. E eF()
)

Implementation

EitherLens<A, B, E> lensOToE<A, B, E>(OptionLens<A, B> aLens, E eF()) => lensE((a) => aLens.get(a).toEither(eF), (a, b) => aLens.set(a, b).toEither(eF));