Say I have an Array[Int] like
Array[Int]
val array = Array( 1, 2, 3 )
Now I would like to append an element to the array, say the value
The easiest might be:
Array(1, 2, 3) :+ 4
Actually, Array can be implcitly transformed in a WrappedArray