Exploring Immutable Arrays in Scala: A Deep Dive into Vectors
Scala Array is not located in the scala.collection.mutable package, however, they are in fact mutable val arr = Array(1,2,3) arr(1) = 3 println(arr.mkString(",")) // 1,3,3 Immutable alternative to Scala Array is Scala Vector val arr = Vector(1,2,3) ...
Aug 12, 20231 min read36
