You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _overviews/FAQ/collections.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ The operation is meant to traverse all elements of the collection, and apply
167
167
the given operation f to each element. The application is done for its side
168
168
effect only; in fact any function result of f is discarded by foreach.
169
169
170
-
Traversible objects can be finite or infinite. An example of an infinite
170
+
Traversable objects can be finite or infinite. An example of an infinite
171
171
traversable object is the stream of natural numbers `Stream.from(0)`. The
172
172
method `hasDefiniteSize` indicates whether a collection is possibly infinite.
173
173
If `hasDefiniteSize` returns true, the collection is certainly finite. If it
@@ -250,7 +250,7 @@ it. Also available are some traits with further refinements, such as
250
250
* `LinearSeq` -- A trait for linear sequences, with efficient time for `isEmpty`, `head` and `tail`.
251
251
252
252
* `immutable.LinearSeq`
253
-
* `immutable.List` -- An immutable, singlely-linked, list implementation.
253
+
* `immutable.List` -- An immutable, singly-linked, list implementation.
254
254
* `immutable.Stream` -- A lazy-list. Its elements are only computed on-demand, but memoized (kept in memory) afterwards. It can be theoretically infinite.
255
255
* `mutable.LinearSeq`
256
256
* `mutable.DoublyLinkedList` -- A list with mutable `prev`, `head` (`elem`) and `tail` (`next`).
@@ -343,7 +343,7 @@ it. Also available are some traits with further refinements, such as
343
343
This was done to achieve maximum code reuse. The concrete *generic*
344
344
implementation for classes with a certain structure (a traversable, a map, etc)
345
345
is done in the Like classes. The classes intended for general consumption,
346
-
then, override selected methods that can be optmized.
346
+
then, override selected methods that can be optimized.
347
347
348
348
* What the companion methods are for (e.g. List.companion)?
Copy file name to clipboardExpand all lines: _overviews/collections/migrating-from-scala-27.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Generally, the old functionality of Scala 2.7 collections has been left in place
41
41
42
42
There are two parts of the old libraries which have been replaced wholesale, and for which deprecation warnings were not feasible.
43
43
44
-
1. The previous `scala.collection.jcl` package is gone. This package tried to mimick some of the Java collection library design in Scala, but in doing so broke many symmetries. Most people who wanted Java collections bypassed `jcl` and used `java.util` directly. Scala 2.8 offers automatic conversion mechanisms between both collection libraries in the [JavaConversions]({{ site.baseurl }}/overviews/collections/conversions-between-java-and-scala-collections.html) object which replaces the `jcl` package.
44
+
1. The previous `scala.collection.jcl` package is gone. This package tried to mimic some of the Java collection library design in Scala, but in doing so broke many symmetries. Most people who wanted Java collections bypassed `jcl` and used `java.util` directly. Scala 2.8 offers automatic conversion mechanisms between both collection libraries in the [JavaConversions]({{ site.baseurl }}/overviews/collections/conversions-between-java-and-scala-collections.html) object which replaces the `jcl` package.
45
45
2. Projections have been generalized and cleaned up and are now available as views. It seems that projections were used rarely, so not much code should be affected by this change.
46
46
47
47
So, if your code uses either `jcl` or projections there might be some minor rewriting to do.
Copy file name to clipboardExpand all lines: _overviews/core/binary-compatibility-of-scala-releases.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ When two versions of Scala are binary compatible, it is safe to compile your pro
11
11
12
12
We check binary compatibility automatically with [MiMa](https://github.com/lightbend/migration-manager). We strive to maintain a similar invariant for the `behavior` (as opposed to just linkage) of the standard library, but this is not checked mechanically (Scala is not a proof assistant so this is out of reach for its type system).
13
13
14
-
#### Forwards and Back
15
-
We distinguish forwards and backwards compatibility (think of these as properties of a sequence of versions, not of an individual version). Maintaining backwards compatibility means code compiled on an older version will link with code compiled with newer ones. Forwards compatibility allows you to compile on new versions and run on older ones.
14
+
#### Forward and Back
15
+
We distinguish forward and backward compatibility (think of these as properties of a sequence of versions, not of an individual version). Maintaining backwards compatibility means code compiled on an older version will link with code compiled with newer ones. Forward compatibility allows you to compile on new versions and run on older ones.
16
16
17
17
Thus, backwards compatibility precludes the removal of (non-private) methods, as older versions could call them, not knowing they would be removed, whereas forwards compatibility disallows adding new (non-private) methods, because newer programs may come to depend on them, which would prevent them from running on older versions (private methods are exempted here as well, as their definition and call sites must be in the same compilation unit).
Copy file name to clipboardExpand all lines: _overviews/core/collections-migration-213.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ The most important changes in the Scala 2.13 collections library are:
29
29
30
30
The [scala-collection-compat](https://github.com/scala/scala-collection-compat) is a library released for 2.11, 2.12 and 2.13 that provides some of the new APIs from Scala 2.13 for the older versions. This simplifies cross-building projects.
31
31
32
-
The module also provides [migratrion rules](https://github.com/scala/scala-collection-compat#migration-tool) for [scalafix](https://scalacenter.github.io/scalafix/docs/users/installation.html) that can update a project's source code to work with the 2.13 collections library.
32
+
The module also provides [migration rules](https://github.com/scala/scala-collection-compat#migration-tool) for [scalafix](https://scalacenter.github.io/scalafix/docs/users/installation.html) that can update a project's source code to work with the 2.13 collections library.
33
33
34
34
## scala.Seq, varargs and scala.IndexedSeq migration
0 commit comments