Skip to content

Instantly share code, notes, and snippets.

@deepakmehra10
Created July 14, 2019 07:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save deepakmehra10/e77a5ad8760f5b1a6d1ba66f51a60bc1 to your computer and use it in GitHub Desktop.
//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