not sure how to make the list-to-be-added iterable...
# getting-started
o
not sure how to make the list-to-be-added iterable so that it can be fed straight into addAll
a
it can be fed straight into addAll
You should be able to since addAll accepts Collection
mutableList.addAll(list2)
m
A list is already an Iterable:
List -▷ Collection -▷ Iterable