Join Slack
Powered by
Even shorter ``` var matches = liveMatches.value ?...
# announcements
d
Dariusz Sadowski
06/27/2018, 9:54 AM
Even shorter
Copy code
var matches = liveMatches.value ?: mutableListOf()
d
diesieben07
06/27/2018, 9:55 AM
That is something else.
listOf
is immutable,
ArrayList
is not.
d
Dariusz Sadowski
06/27/2018, 9:55 AM
Good shout, I’m too used to immutability 😄
Open in Slack
Previous
Next