I'm pretty new to Scala and try to understand mutable Seq
. Since it's in package mutable
I expected there is a method that allows us to append element without copying the whole collection.
But there is no +=
method in the mutable.Seq
, but in Buffer
is. :+
and +:
both copy the collection.
So why is it mutable?