Replies: 1 comment 5 replies
-
Try doesn't apply any special treatment to the type of object it holds, so it's fine to iterate it inside one of generic Try.of(() -> foo())
.map(strings -> strings.map(String::toUpperCase))
.onSuccess(strings -> {
strings.forEach(System.out::println);
}); |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I traverse
Try<List<String>>
using fluent API? Please consider the following code snippet.I want to traverse the list and do some transformations.
Beta Was this translation helpful? Give feedback.
All reactions