left<A, B> function
- A value
Create a Left
value wrapped in a TaskEither
.
Example:
final errorTask = left<String, int>("Error");
Implementation
TaskEither<A, B> left<A, B>(A value) {
return TaskEither(() => Future.value(e.Left<A, B>(value)));
}