aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t4285.check
blob: b952cb8e1b581d98d19c7e40912c2aaaa5a84114 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
Type in expressions to have them evaluated.
Type :help for more information.

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