Did you understand why it would be ambiguous to `a...
# announcements
l
Did you understand why it would be ambiguous to
addAll(vararg)
? I didn't quite see a possible confusion there
l
Would you be adding the elements from the list? Or the list itself?
I guess that would be the main confusion
k
Exactly the example I posted, what is the last line supposed to do? What if it's a
List<List<Any>>
?
l
The object is to have the following syntax possible:
Copy code
val list = mutableListOf(1, 2, 3)
list.addAll(4, 5, 6)
Assert.assertEquals(listOf(1,2,3,4,5,6), list)
Instead of
Copy code
Val list = mutableListOf(1,2,3)
List.addAll(listOf(4,5,6)