Skip to content

Commit 6df2a5b

Browse files
committed
fix according to review
1 parent 5b90c3f commit 6df2a5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

blog/_posts/2017-05-29-tribulations-canbuildfrom.md renamed to blog/_posts/2017-05-30-tribulations-canbuildfrom.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ val xsWithSquares: Map[Int, Int] =
222222
~~~
223223

224224
`breakOut` selects a `CanBuildFrom` instance irrespective of the initial collection type.
225-
In our case the `Map[Int, Int]` type annotation fixes the target type of the builder
226-
to implicitly look for.
225+
This requires the target type to be known, in this case via an explicit type ascription.
227226

228227
In the new design we have no direct equivalent of `breakOut`. The solution of the
229228
above example consists in using a `View` to avoid the construction of an
@@ -241,4 +240,5 @@ a `View` followed by an explicit `to` call. However, this is an area that remain
241240
## Summary
242241

243242
In this article we have reviewed the features built on top of `CanBuildFrom` and explained
244-
the design decision we made for the new collections to support these features without `CanBuildFrom`.
243+
the design decision we made for the new collections to support most of these features
244+
without `CanBuildFrom`.

0 commit comments

Comments
 (0)