what is the idiomatic way to instantiate a list if...
# announcements
j
what is the idiomatic way to instantiate a list if it’s null?
Copy code
if (list == null) list = mutableListOf()
or
Copy code
list = list ?: mutableListOf()