Either Result
A simple package for functional-style error handling using Either.
Either<Failure,String> getStringOrint(){
try {
return Right("Hello");
} catch(e) {
return Left("Error");
}
}
Either<Failure,String> getStringOrint(){
try {
return Right("Hello");
} catch(e) {
return Left("Error");
}
}