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");
    }
}

Libraries

simple_either