This is not just a post about arrays, but also tuples and other Scala structures. I've already written about Scala type inference. Well, let's see what happens when one of the element of an Array[Int]is changed into a Double:
scala> val mix = Array(1, 2, 3)
mix: Array[Int] = Array(1, 2, 3)
scala> val mix = Array(1, 2, 3.3)
mix: Array[Double] = Array(1.0, 2.0, 3.3)