Skip to content

apply #482 for other languages #624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions es/overviews/parallel-collections/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions ja/overviews/parallel-collections/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions zh-cn/overviews/parallel-collections/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down