aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t6410.scala
blob: 51aaad839e5a53086dfb287a3287923eb21fe052 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


 






                                                                                                      
 
object Test {
  def main(args: Array[String]): Unit = {
    val x = collection.parallel.mutable.ParArray.range(1,10) groupBy { _ % 2 } mapValues { _.size }
    println(x)
    val y = collection.parallel.immutable.ParVector.range(1,10) groupBy { _ % 2 } mapValues { _.size }
    println(y)
  }
}