Created
May 8, 2020 02:08
-
-
Save sagarpatel288/12e62a5686af8fb1098d0818d884f13e to your computer and use it in GitHub Desktop.
Calling a higher order function where a function type has no parameter
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
/** | |
* 5/8/2020 | |
* A function type without any parameter | |
* <p> | |
* if the higher order function has only one function type parameter and the function type has no parameter, | |
* We can simply write our business logic between curly parentheses right after the name of the function. | |
* </p> | |
* @author srdpatel | |
* @since 1.0 | |
*/ | |
doSomethingY { "test" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment