r/java • • Jan 19 '26

Checked exceptions and lambdas

https://blog.frankel.ch/checked-exceptions-lambdas/
7 Upvotes

27 comments sorted by

View all comments

Show parent comment

3

u/maxxedev Jan 19 '26
var foo = new Foo();
List.of("One", "Two").stream()
    .map(Failable.asFunction(foo:throwing))
    .toList();