Created
May 4, 2020 11:12
-
-
Save sagarpatel288/6fdfe9c3ede9545e07716c3646dc1514 to your computer and use it in GitHub Desktop.
overhead inline function
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
inline fun Int.doSomething(y: Int, noinline ftOne: Int.(Int) -> Int) { | |
//passing a function type to another function | |
val funOne = someFunction(ftOne) | |
/*...*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment