File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,13 @@ Declaring the result type before the `map` operation is necessary, due to limita
3232
3333### Working with Either
3434
35- An Either has the familiar methods ` map ` , ` flatMap ` , ` filter ` and ` orElseThrow ` .
35+ An Either has the familiar methods ` map ` , ` flatMap ` and ` filter ` .
3636All of these work on * Right* Eithers, and leave a * Left* unchanged.
3737This is intuitive, because the corresponding ` Optional ` methods leave * empty* unchanged.
38- There are also ` mapLeft ` and ` flatMapLeft ` methods,
39- which leave a * Right* unchanged instead.
38+ Then there are ` mapLeft ` , ` flatMapLeft ` and ` filterLeft ` , which leave a * Right* unchanged instead.
4039
41- Finally there is the all-powerful ` fold ` method, as well as ` getLeft `
42- and ` getRight ` to convert back to ` Optional ` .
40+ Finally there is the all-powerful ` fold ` method, as well as ` getRight ` to convert back to ` Optional ` ,
41+ and ` getLeft ` to get the LHS value, wrapped in a so-called ` LeftOptional ` .
4342
4443### Testimonies
4544
You can’t perform that action at this time.
0 commit comments