diff options
author | pacien | 2019-03-29 18:10:03 +0100 |
---|---|---|
committer | pacien | 2019-03-29 18:10:03 +0100 |
commit | 58b588129b2ab4ccb3ba84e395524e2d07d0ff08 (patch) | |
tree | 1a42401ce32ed0fedc7f7dbb2d950a482d75ab49 /readme.md | |
parent | 815755b9594d1577d282dc47120e68fe0aa8c4f1 (diff) | |
download | java-lemonad-58b588129b2ab4ccb3ba84e395524e2d07d0ff08.tar.gz |
update example
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -28,7 +28,7 @@ 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 | .mapFailure(error -> store.buyLemon()) | 31 | .mapError(__ -> store.buyLemon()) |
32 | .mapResult(this::makeLemonade) | 32 | .mapResult(this::makeLemonade) |
33 | .ifSuccess(this::drink); | 33 | .ifSuccess(this::drink); |
34 | ``` | 34 | ``` |
@@ -70,7 +70,7 @@ repositories { | |||
70 | } | 70 | } |
71 | 71 | ||
72 | dependencies { | 72 | dependencies { |
73 | implementation 'org.pacien:lemonad:master-11a6ff0260-1' | 73 | implementation 'org.pacien:lemonad:master-815755b959-1' |
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>master-11a6ff0260-1</version> | 91 | <version>master-815755b959-1</version> |
92 | </dependency> | 92 | </dependency> |
93 | </project> | 93 | </project> |
94 | ``` | 94 | ``` |