Scaladocs explain how to add an element to a Vector.
def :+(elem: A): Vector[A]
[use case] A copy of this vector with an element appended.
Example:
scala> Vector(1,2) :+ 3
res12: scala.collection.immutable.Vector[Int] = Vector(1, 2, 3)
For a large collection, it seems expensive to copy the whole Vector, and then add an element to it.
What's the best(fastest) way to add an element to a Vector?