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: spec/12-the-scala-standard-library.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -427,13 +427,13 @@ operations on an array `xs`:
427
427
428
428
Two implicit conversions exist in `Predef` that are frequently applied to arrays:
429
429
a conversion to `scala.collection.mutable.ArrayOps` and a conversion to
430
-
`scala.collection.mutable.WrappedArray` (a subtype of `scala.collection.Seq`).
430
+
`scala.collection.mutable.ArraySeq` (a subtype of `scala.collection.Seq`).
431
431
432
432
Both types make many of the standard operations found in the Scala
433
433
collections API available. The conversion to `ArrayOps` is temporary, as all operations
434
-
defined on `ArrayOps` return a value of type `Array`, while the conversion to `WrappedArray`
435
-
is permanent as all operations return a value of type `WrappedArray`.
436
-
The conversion to `ArrayOps` takes priority over the conversion to `WrappedArray`.
434
+
defined on `ArrayOps` return a value of type `Array`, while the conversion to `ArraySeq`
435
+
is permanent as all operations return a value of type `ArraySeq`.
436
+
The conversion to `ArrayOps` takes priority over the conversion to `ArraySeq`.
437
437
438
438
Because of the tension between parametrized types in Scala and the ad-hoc
439
439
implementation of arrays in the host-languages, some subtle points
@@ -739,9 +739,9 @@ The available low-priority implicits include definitions falling into the follow
739
739
can be implicitly converted to instances of class `runtime.RichInt`.
740
740
741
741
1. For every array type with elements of primitive type, a wrapper that
742
-
takes the arrays of that type to instances of a `runtime.WrappedArray` class. For instance, values of type `Array[Float]` can be implicitly converted to instances of class `runtime.WrappedArray[Float]`.
742
+
takes the arrays of that type to instances of a `ArraySeq` class. For instance, values of type `Array[Float]` can be implicitly converted to instances of class `ArraySeq[Float]`.
743
743
There are also generic array wrappers that take elements
744
-
of type `Array[T]` for arbitrary `T` to `WrappedArray`s.
744
+
of type `Array[T]` for arbitrary `T` to `ArraySeq`s.
745
745
746
746
1. An implicit conversion from `String` to `WrappedString`.
0 commit comments