From 2efd7f513fa7bf6cfbc88249f59d05f6061963e8 Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Mon, 14 Nov 2016 15:02:56 +0900 Subject: [PATCH] apply #482 for other languages --- es/overviews/parallel-collections/overview.md | 4 ++-- ja/overviews/parallel-collections/overview.md | 4 ++-- zh-cn/overviews/parallel-collections/overview.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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