From 9a0ba0e0167309a858b5da7ff7a8431a240dbdcf Mon Sep 17 00:00:00 2001 From: Philippus Baalman Date: Fri, 17 Feb 2017 09:37:51 +0100 Subject: [PATCH 1/3] mentioned here https://getsatisfaction.com/scaladocs/topics/error-in-http-docs-scala-lang-org-overviews-parallel-collections-overview-html --- overviews/parallel-collections/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overviews/parallel-collections/overview.md b/overviews/parallel-collections/overview.md index 307fe47677..90b69e187b 100644 --- a/overviews/parallel-collections/overview.md +++ b/overviews/parallel-collections/overview.md @@ -104,7 +104,7 @@ Summing via `fold` on a `ParArray`: #### filter Using a parallel `filter` to select the last names that come alphabetically -after the letter "K". +after the letter "I". scala> val lastNames = List("Smith","Jones","Frankenstein","Bach","Jackson","Rodin").par lastNames: scala.collection.parallel.immutable.ParSeq[String] = ParVector(Smith, Jones, Frankenstein, Bach, Jackson, Rodin) From 048fdfe419830a3ec833d2f853af75ececc1af83 Mon Sep 17 00:00:00 2001 From: Philippus Baalman Date: Fri, 17 Feb 2017 09:41:33 +0100 Subject: [PATCH 2/3] mentioned here https://getsatisfaction.com/scaladocs/topics/missing_link_on_spanish_scala_tour --- es/tutorials/tour/_posts/2017-02-13-tour-of-scala.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es/tutorials/tour/_posts/2017-02-13-tour-of-scala.md b/es/tutorials/tour/_posts/2017-02-13-tour-of-scala.md index 9c5f6183bd..3c5fdc892e 100644 --- a/es/tutorials/tour/_posts/2017-02-13-tour-of-scala.md +++ b/es/tutorials/tour/_posts/2017-02-13-tour-of-scala.md @@ -1,6 +1,6 @@ --- layout: tutorial -title: Introduction +title: Introducción disqus: true From b2413f3221fd23f691b9bb989d6c0cc683084cec Mon Sep 17 00:00:00 2001 From: Philippus Baalman Date: Fri, 17 Feb 2017 10:07:51 +0100 Subject: [PATCH 3/3] mentioned here https://getsatisfaction.com/scaladocs/topics/other_little_error_in_the_cheatsheet --- ba/cheatsheets/index.md | 2 +- cheatsheets/index.md | 2 +- fr/cheatsheets/index.md | 2 +- ja/cheatsheets/index.md | 2 +- pl/cheatsheets/index.md | 2 +- pt-br/cheatsheets/index.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ba/cheatsheets/index.md b/ba/cheatsheets/index.md index 9359eb1cc2..e336e31a23 100644 --- a/ba/cheatsheets/index.md +++ b/ba/cheatsheets/index.md @@ -58,7 +58,7 @@ language: ba | `for (x <- xs if x%2 == 0) yield x*10` _isto kao_
`xs.filter(_%2 == 0).map(_*10)` | for komprehensija: filter/map. | | `for ((x,y) <- xs zip ys) yield x*y` _isto kao_
`(xs zip ys) map { case (x,y) => x*y }` | for komprehensija: destrukturirajuće vezivanje. | | `for (x <- xs; y <- ys) yield x*y` _isto kao_
`xs flatMap {x => ys map {y => x*y}}` | for komprehensija: međuproizvod (vektorski proizvod). | -| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x,y, x*y))`
`}` | for komprehensija: imperativ-asto.
[sprintf-stil.](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | +| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x, y, x/y.toFloat))`
`}` | for komprehensija: imperativ-asto.
[sprintf-stil.](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | | `for (i <- 1 to 5) {`
`println(i)`
`}` | for komprehensija: iteracija uključujući gornju granicu. | | `for (i <- 1 until 5) {`
`println(i)`
`}` | for komprehensija: iteracija ne uključujući gornju granicu. | | podudaranje uzoraka (pattern matching) | | diff --git a/cheatsheets/index.md b/cheatsheets/index.md index 31e3c2d50d..7cf8da6730 100644 --- a/cheatsheets/index.md +++ b/cheatsheets/index.md @@ -57,7 +57,7 @@ languages: [ba, fr, ja, pl, pt-br] | `for (x <- xs if x%2 == 0) yield x*10` _same as_
`xs.filter(_%2 == 0).map(_*10)` | for comprehension: filter/map | | `for ((x,y) <- xs zip ys) yield x*y` _same as_
`(xs zip ys) map { case (x,y) => x*y }` | for comprehension: destructuring bind | | `for (x <- xs; y <- ys) yield x*y` _same as_
`xs flatMap {x => ys map {y => x*y}}` | for comprehension: cross product | -| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x,y, x*y))`
`}` | for comprehension: imperative-ish
[sprintf-style](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | +| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x, y, x/y.toFloat))`
`}` | for comprehension: imperative-ish
[sprintf-style](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | | `for (i <- 1 to 5) {`
`println(i)`
`}` | for comprehension: iterate including the upper bound | | `for (i <- 1 until 5) {`
`println(i)`
`}` | for comprehension: iterate omitting the upper bound | | pattern matching | | diff --git a/fr/cheatsheets/index.md b/fr/cheatsheets/index.md index b15e1dbe30..d6a828a6d6 100644 --- a/fr/cheatsheets/index.md +++ b/fr/cheatsheets/index.md @@ -58,7 +58,7 @@ language: fr | `for (x <- xs if x%2 == 0) yield x*10` _est équivalent à_
`xs.filter(_%2 == 0).map(_*10)` | *for comprehension*: filter/map | | `for ((x,y) <- xs zip ys) yield x*y` _est équivalent à_
`(xs zip ys) map { case (x,y) => x*y }` | *for comprehension* : liaison déstructurée | | `for (x <- xs; y <- ys) yield x*y` _est équivalent à_
`xs flatMap {x => ys map {y => x*y}}` | *for comprehension* : produit cartésien. | -| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x,y, x*y))`
`}` | *for comprehension* : à la manière impérative
[sprintf-style](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | +| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x, y, x/y.toFloat))`
`}` | *for comprehension* : à la manière impérative
[sprintf-style](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | | `for (i <- 1 to 5) {`
`println(i)`
`}` | *for comprehension* : itère jusqu'à la borne supérieure comprise. | | `for (i <- 1 until 5) {`
`println(i)`
`}` | *for comprehension* : itère jusqu'à la borne supérieure non comprise. | | pattern matching | | diff --git a/ja/cheatsheets/index.md b/ja/cheatsheets/index.md index 08698a1aa5..605ea191b1 100644 --- a/ja/cheatsheets/index.md +++ b/ja/cheatsheets/index.md @@ -58,7 +58,7 @@ language: ja | `for (x <- xs if x%2 == 0) yield x*10`
_(_ `xs.filter(_%2 == 0).map(_*10)` _と同じ)_ | for 内包表記: filter/map | | `for ((x,y) <- xs zip ys) yield x*y`
_(_ `(xs zip ys) map { case (x,y) => x*y }` _と同じ)_ | for 内包表記: 構造化代入 | | `for (x <- xs; y <- ys) yield x*y`
_(_ `xs flatMap {x => ys map {y => x*y}}` _と同じ)_ | for 内包表記: 直積 | -| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x,y, x*y))`
`}` | for 内包表記: 命令型の記述
[sprintf-style](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | +| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x, y, x/y.toFloat))`
`}` | for 内包表記: 命令型の記述
[sprintf-style](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | | `for (i <- 1 to 5) {`
`println(i)`
`}` | for 内包表記: 上限を含んだ走査 | | `for (i <- 1 until 5) {`
`println(i)`
`}` | for 内包表記: 上限を除いた走査 | | パターンマッチング | | diff --git a/pl/cheatsheets/index.md b/pl/cheatsheets/index.md index c58bfcfdc0..37201bcf85 100644 --- a/pl/cheatsheets/index.md +++ b/pl/cheatsheets/index.md @@ -58,7 +58,7 @@ language: pl | `for (x <- xs if x%2 == 0) yield x*10` _to samo co_
`xs.filter(_%2 == 0).map(_*10)` | instrukcja for: filtrowanie / mapowanie | | `for ((x,y) <- xs zip ys) yield x*y` _to samo co_
`(xs zip ys) map { case (x,y) => x*y }` | instrukcja for: przypisanie z podziałem | | `for (x <- xs; y <- ys) yield x*y` _to samo co_
`xs flatMap {x => ys map {y => x*y}}` | instrukcja for: iloczyn kartezjański | -| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x,y, x*y))`
`}` | instrukcja for: imperatywnie
[sprintf-style](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | +| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x, y, x/y.toFloat))`
`}` | instrukcja for: imperatywnie
[sprintf-style](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | | `for (i <- 1 to 5) {`
`println(i)`
`}` | instrukcja for: iterowanie aż do górnej granicy | | `for (i <- 1 until 5) {`
`println(i)`
`}` | instrukcja for: iterowanie poniżej górnej granicy | | pattern matching (dopasowywanie wzorca) | | diff --git a/pt-br/cheatsheets/index.md b/pt-br/cheatsheets/index.md index 0ff4c6567a..9ae93150df 100644 --- a/pt-br/cheatsheets/index.md +++ b/pt-br/cheatsheets/index.md @@ -58,7 +58,7 @@ language: pt-br | `for (x <- xs if x%2 == 0) yield x*10` _o mesmo que_
`xs.filter(_%2 == 0).map(_*10)` | for: filter/map | | `for ((x,y) <- xs zip ys) yield x*y` _o mesmo que_
`(xs zip ys) map { case (x,y) => x*y }` | for: associação desestruturada | | `for (x <- xs; y <- ys) yield x*y` _o mesmo que_
`xs flatMap {x => ys map {y => x*y}}` | for: produto cruzado | -| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x,y, x*y))`
`}` | for: estilo imperativo
[sprintf-style](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | +| `for (x <- xs; y <- ys) {`
`println("%d/%d = %.1f".format(x, y, x/y.toFloat))`
`}` | for: estilo imperativo
[sprintf-style](http://java.sun.com/javase/6/docs/api/java/util/Formatter.html#syntax) | | `for (i <- 1 to 5) {`
`println(i)`
`}` | for: itera incluindo o limite superior | | `for (i <- 1 until 5) {`
`println(i)`
`}` | for: itera omitindo o limite superior | | pattern matching | |