Is there any `clear + addAll` extension on Mutable...
# announcements
g
Is there any
clear + addAll
extension on MutableList? Sort of
setAll/putAll
a
I believe there is replaceAll but there is some api restriction ...something like min api 24 or something unrealistically high. You can implement an extension fun 🤷
s
or you do:
Copy code
mutList.apply {
  clear()
  addAll(otherCollection)
}
2