Join Slack
Powered by
It's still pass by value of reference because this...
# getting-started
k
karelpeeters
09/08/2018, 7:16 PM
It's still pass by
value
of reference because this doesn't do anything:
Copy code
fun foo(str: String) { str = "hello" } val a = "hey" foo(a) println(a)
2
Views
Open in Slack
Previous
Next