fromEither<L, R> function

TaskOption<R> fromEither<L, R>(
  1. Either<L, R> either
)

Returns a TaskOption that resolves to an Option from the given Either. Left values become None, Right values are wrapped in Some.

Implementation

TaskOption<R> fromEither<L, R>(Either<L, R> either) =>
    TaskOption(T.value(O.fromEither(either)));