Java: Bugfix dispatch to lambda in call context.

This commit is contained in:
Anders Schack-Mulligen
2021-03-15 15:09:03 +01:00
parent e37ba75599
commit 662e17ff85
6 changed files with 144 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
import java.util.function.Function;
public class Processor<T> {
public <R> R process(Function<T,R> function, T arg) {
return function.apply(arg);
}
}