Skip to content

Commit 9382d3b

Browse files
committed
Address Martin’s comments
1 parent 3a4471e commit 9382d3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blog/_posts/2017-02-25-collections-rework.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ While `BitSet` is a rather esoteric collection type, the same principle of impli
108108
- All `Map` types: `T <:< (_, _)` ("must be a Tuple2")
109109
- All sorted collections (like `TreeSet`): `Ordering[T]` ("must have an Ordering")
110110
- String (not a collection type per se but it gets many collection methods as extension methods): `T <:< Char` ("must be a Char")
111+
- Array (same situation as String): `ClassTag[T]` ("must have a ClassTag")
111112

112-
This covers most uses of `CanBuildFrom` in a much simpler way. The most important use cases that cannot be supported by the new design are `collection.breakOut` (for building a different collection type directly without an extra conversion step) and `to` (for converting to a different collection type for which a `CanBuildFrom` is available).
113+
This covers most uses of `CanBuildFrom` in a much simpler way. The most important use cases that cannot be supported directly by the new design are `collection.breakOut` (for building a different collection type directly without an extra conversion step) and `to` (for converting to a different collection type for which a `CanBuildFrom` is available). The new design provides alternative ways to achieve the same effects.
113114

114115
## FromIterable
115116

0 commit comments

Comments
 (0)