Created
March 11, 2018 14:23
-
-
Save ruwanka/0465dd4dd7edc1f0f15bc3c0408f99e0 to your computer and use it in GitHub Desktop.
Kotlin Higher Order functions
This file contains hidden or 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
fun apply(num: Int, op: (Int) -> Int): Int { | |
return op(num) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment