Answers for "kotlin method return"

1

kotlin method return

fun sum(val a: Int, val b: Int): Int {
    return a+b
}

fun sum(val a: Int, val b: Int) = a + b
Posted by: Guest on April-20-2021
0

kotlin function return

fun sum(a: Int, b: Int): Int {
    return a + b
}
Posted by: Guest on April-07-2021

Browse Popular Code Answers by Language