Skip to content

Instantly share code, notes, and snippets.

@NitinPraksash9911
Last active March 6, 2020 08:32
Show Gist options
  • Save NitinPraksash9911/6e656b074465f1f6e5c82091f05223ef to your computer and use it in GitHub Desktop.
Save NitinPraksash9911/6e656b074465f1f6e5c82091f05223ef to your computer and use it in GitHub Desktop.
/** Higher Order Function **/
fun funName(a: Int, func: (Int) -> Int) {
val s = func(a)
println(s)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment