diff options
-rw-r--r-- | readme.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -28,8 +28,8 @@ the use of which being problematic in performance-sensitive contexts. | |||
28 | import static org.pacien.lemonad.attempt.Attempt.*; | 28 | import static org.pacien.lemonad.attempt.Attempt.*; |
29 | 29 | ||
30 | (tree.hasLemon() ? success(tree.getLemon()) : failure("No lemon.")) | 30 | (tree.hasLemon() ? success(tree.getLemon()) : failure("No lemon.")) |
31 | .mapError(__ -> store.buyLemon()) | 31 | .recoverError(__ -> store.buyLemon()) |
32 | .mapResult(this::makeLemonade) | 32 | .transformResult(this::makeLemonade) |
33 | .ifSuccess(this::drink); | 33 | .ifSuccess(this::drink); |
34 | ``` | 34 | ``` |
35 | 35 | ||
@@ -70,7 +70,7 @@ repositories { | |||
70 | } | 70 | } |
71 | 71 | ||
72 | dependencies { | 72 | dependencies { |
73 | implementation 'org.pacien:lemonad:614bd19ad5' | 73 | implementation 'org.pacien:lemonad:60a6659264' |
74 | } | 74 | } |
75 | ``` | 75 | ``` |
76 | 76 | ||
@@ -88,7 +88,7 @@ dependencies { | |||
88 | <dependency> | 88 | <dependency> |
89 | <groupId>org.pacien</groupId> | 89 | <groupId>org.pacien</groupId> |
90 | <artifactId>lemonad</artifactId> | 90 | <artifactId>lemonad</artifactId> |
91 | <version>614bd19ad5</version> | 91 | <version>60a6659264</version> |
92 | </dependency> | 92 | </dependency> |
93 | </project> | 93 | </project> |
94 | ``` | 94 | ``` |