diff --git a/es/overviews/parallel-collections/overview.md b/es/overviews/parallel-collections/overview.md index 8a66e9c976..13ac354f55 100644 --- a/es/overviews/parallel-collections/overview.md +++ b/es/overviews/parallel-collections/overview.md @@ -67,11 +67,11 @@ Usando un `map` paralelizado para transformar una colección de elementos tipo ` Sumatoria mediante `fold` en un `ParArray`: - scala> val parArray = (1 to 1000000).toArray.par + scala> val parArray = (1 to 10000).toArray.par parArray: scala.collection.parallel.mutable.ParArray[Int] = ParArray(1, 2, 3, ... scala> parArray.fold(0)(_ + _) - res0: Int = 1784293664 + res0: Int = 50005000 #### filtrando diff --git a/ja/overviews/parallel-collections/overview.md b/ja/overviews/parallel-collections/overview.md index d55034af95..f16b607eb3 100644 --- a/ja/overviews/parallel-collections/overview.md +++ b/ja/overviews/parallel-collections/overview.md @@ -69,11 +69,11 @@ Scala の並列コレクションライブラリは、順次ライブラリコ `ParArray` の `fold` を使った合計: - scala> val parArray = (1 to 1000000).toArray.par + scala> val parArray = (1 to 10000).toArray.par parArray: scala.collection.parallel.mutable.ParArray[Int] = ParArray(1, 2, 3, ... scala> parArray.fold(0)(_ + _) - res0: Int = 1784293664 + res0: Int = 50005000 #### filter diff --git a/zh-cn/overviews/parallel-collections/overview.md b/zh-cn/overviews/parallel-collections/overview.md index a6db8a19ec..1b89ab0e0e 100644 --- a/zh-cn/overviews/parallel-collections/overview.md +++ b/zh-cn/overviews/parallel-collections/overview.md @@ -59,11 +59,11 @@ Scala的并行容器库设计创意般的同Scala的(序列)容器库(从2 通过fold计算一个ParArray中所有数的累加值: - scala> val parArray = (1 to 1000000).toArray.par + scala> val parArray = (1 to 10000).toArray.par parArray: scala.collection.parallel.mutable.ParArray[Int] = ParArray(1, 2, 3, ... scala> parArray.fold(0)(_ + _) - res0: Int = 1784293664 + res0: Int = 50005000 #### filter