I can\'t figure out what ?: does in for example this case
?:
val list = mutableList ?: mutableListOf()
and why can it be modifi
A little addition though is this
X = A ?: B
X will still be null if both A and B evaluate to null
X
null
A
B
Therefore, if you want X to always be non-null, make sure B is always a non-null or that B always evaluates to non-null if it's a function or expression.
non-null