Skip to content

Instantly share code, notes, and snippets.

@sagarpatel288
Created May 8, 2020 02:08
Show Gist options
  • Save sagarpatel288/12e62a5686af8fb1098d0818d884f13e to your computer and use it in GitHub Desktop.
Save sagarpatel288/12e62a5686af8fb1098d0818d884f13e to your computer and use it in GitHub Desktop.
Calling a higher order function where a function type has no parameter
/**
* 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