Created
July 14, 2019 07:56
-
-
Save deepakmehra10/e77a5ad8760f5b1a6d1ba66f51a60bc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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