mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
14 lines
261 B
Java
14 lines
261 B
Java
// "Replace with lambda" "true"
|
|
class Test {
|
|
interface Eff<A, B> {
|
|
B f(A a);
|
|
}
|
|
|
|
interface InOut<A> {
|
|
A run() throws IOException;
|
|
|
|
<B> InOut<B> bind(final Eff<A, InOut<B>> f) default {
|
|
return () -> f.f(InOut.this.run()).run();
|
|
}
|
|
}
|
|
} |