https://kotlinlang.org logo
d

dalexander

01/18/2017, 1:49 PM
If you are only going to perform one operation then yeah, there’s no difference. In general I don’t think there are any functional methods that work by mutating a list in place. I guess you could write a
fun MutableList.filterNotNullInPlace
if you wanted one?