I was reading on the book "Scala for the Impatient"
On Chapter 3, it comes across this code
val a = Array(1, 7, 2, 9)
scala.util.Sorting.quickSort(a)
// a is now Array(1, 2, 7, 9)
I thought val a
should be immutable in scala? What is going on here?