return values kotlin code example
Example: 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
fun sum(val a: Int, val b: Int): Int {
return a+b
}
fun sum(val a: Int, val b: Int) = a + b