Skip to content

Instantly share code, notes, and snippets.

@sagarpatel288
Last active May 5, 2020 09:31
Show Gist options
  • Save sagarpatel288/5fde0ce9a23e211c565755cf9788c14e to your computer and use it in GitHub Desktop.
Save sagarpatel288/5fde0ce9a23e211c565755cf9788c14e to your computer and use it in GitHub Desktop.
A higher order function that has one and only function type parameter. This function type has also one and only parameter.
//region A function type that has only one parameter
private fun doSomething(ft: (Int) -> String) {
/*...*/
}
//endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment