Created
May 5, 2020 08:32
-
-
Save sagarpatel288/c7180f63feb67f40bb677d5ff7ca8f86 to your computer and use it in GitHub Desktop.
A higher order function with one and only function type 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
//region A higher order function that has one and only function type parameter | |
private fun doSomething(ft: (Int, Int) -> Int) { | |
val result = ft(1, 2) | |
/*...*/ | |
} | |
//endregion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment