Skip to content

Commit 38b52e5

Browse files
authored
Merge pull request scala#2354 from som-snytt/issue/scala-12141
2 parents 9acc338 + 4895a4b commit 38b52e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_overviews/core/collections-migration-213.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The most important changes in the Scala 2.13 collections library are:
1515
- Transformation methods no longer have an implicit `CanBuildFrom` parameter. This makes the library easier to understand (in source code, Scaladoc, and IDE code completion). It also makes compiling user code more efficient.
1616
- The type hierarchy is simplified. `Traversable` no longer exists, only `Iterable`.
1717
- The `to[Collection]` method was replaced by the `to(Collection)` method.
18+
- The `toC` methods are strict by convention and yield the default collection type where applicable. For example, `Iterator.continually(42).take(10).toSeq` produces a `List[Int]` and without the limit would not.
19+
- `toIterable` is deprecated wherever defined. For `Iterator`, in particular, prefer `to(LazyList)`.
1820
- Views have been vastly simplified and work reliably now. They no longer extend their corresponding collection type, for example, an `IndexedSeqView` no longer extends `IndexedSeq`.
1921
- `collection.breakOut` no longer exists, use `.view` and `.to(Collection)` instead.
2022
- Immutable hash sets and hash maps have a new implementation (`ChampHashSet` and `ChampHashMap`, based on the ["CHAMP" encoding](https://michael.steindorfer.name/publications/oopsla15.pdf)).

0 commit comments

Comments
 (0)