cond<L, R> static method
Implementation
static Either<L, R> cond<L, R>(bool test, R rightValue, L leftValue) =>
test ? Right(rightValue) : Left(leftValue);
static Either<L, R> cond<L, R>(bool test, R rightValue, L leftValue) =>
test ? Right(rightValue) : Left(leftValue);