How MutableList() {} works?
I have the habit to using MutableList(size) { readln().toInt() } this is the same that MutableList(size) { it → readln().toInt() } I am passing a lambda to populate the mutable list?
2 posts - 2 participants
Read full topic