lift<A, B> method

  1. @override
Either<Exception, B> lift<A, B>(
  1. covariant Either<Exception, B Function(A)> fn,
  2. covariant Either<Exception, A> a
)
inherited

Perform the operation fn with the value in a and wrap with Applicative<B> for pipelining.

Implementation

@override
Either<Exception, B> lift<A, B>(
        Either<Exception, B Function(A)> fn, Either<Exception, A> a) =>
    fn.bind<B>((fn) => a.fmap((a) => fn(a)));