Good day. How can I change the value of Double par...
# getting-started
n
Good day. How can I change the value of Double parameter inside the function?
Copy code
fun main (args: Array<String>){
    var summa = 0.0
    testFun(summa)
    print(summa)
}

fun testFun(arg: Double){
    arg = arg+1
}
error: Val cannot be reassigned