blob: 2a001b47ab4aee4dded78f0cad40831647a0d0d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
object Test extends App {
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)
}
|