summaryrefslogblamecommitdiff
path: root/test/files/run/t4285.check
blob: 465aee75f1a36cfc7389807e26c53ca598a60bef (plain) (tree)
1
2
3
4
5
6
7
8
9
 

                                          
 




                                                                                    
 
            
scala> val x = Array(1,2,3,4,5,6,7)
x: Array[Int] = Array(1, 2, 3, 4, 5, 6, 7)

scala> val y = x transform (_ * 2)
y: scala.collection.mutable.WrappedArray[Int] = WrappedArray(2, 4, 6, 8, 10, 12, 14)

scala> println(y.sum)
56

scala> :quit