return type in kotlin function
snippet in kotlin

return type in kotlin function

user2203

//Function having two Int parameters with Int return type
fun sum(a: Int, b: Int): Int {
    return a + b
}