Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//partial application
Function4<Integer, Integer, Integer, Integer, Integer> fourArgFunction = (a, b, c, d) -> a + b + c + d;
Function2<Integer,Integer,Integer> result = fourArgFunction.apply(4,5);
System.out.println(result.apply(1,2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment