Posted On: Feb 22, 2018
Kotlin functions are first-class functions that are easily stored in variables and data structures and can be pass as arguments and returned from other higher-order functions.
Sample function declaration and usage in Kotlin
fun double(x: Int): Int { return 2 * x } val result = double(2)
Never Miss an Articles from us.
Which type of Programming does Kotlin support?..