Skip to content

Commit 3aa9487

Browse files
committed
update documentation
1 parent ba5a606 commit 3aa9487

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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`.
3636
All of these work on *Right* Eithers, and leave a *Left* unchanged.
3737
This 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

0 commit comments

Comments
 (0)