@@ -17,10 +17,10 @@ object Vector extends StrictOptimizedSeqFactory[Vector] {
17
17
def from [E ](it : collection.IterableOnce [E ]): Vector [E ] =
18
18
it match {
19
19
case v : Vector [E ] => v
20
- case _ => (newBuilder() ++= it).result()
20
+ case _ => (newBuilder ++= it).result()
21
21
}
22
22
23
- def newBuilder [A ]() : Builder [A , Vector [A ]] = new VectorBuilder [A ]
23
+ def newBuilder [A ]: Builder [A , Vector [A ]] = new VectorBuilder [A ]
24
24
25
25
private [immutable] val NIL = new Vector [Nothing ](0 , 0 , 0 )
26
26
@@ -82,7 +82,7 @@ final class Vector[+A] private[immutable] (private[collection] val startIndex: I
82
82
if (s.depth > 1 ) s.gotoPos(startIndex, startIndex ^ focus)
83
83
}
84
84
85
- override def iterator () : VectorIterator [A ] = {
85
+ override def iterator : VectorIterator [A ] = {
86
86
val s = new VectorIterator [A ](startIndex, endIndex)
87
87
initIterator(s)
88
88
s
@@ -178,7 +178,7 @@ final class Vector[+A] private[immutable] (private[collection] val startIndex: I
178
178
v
179
179
case n if this .size < (n >>> Log2ConcatFaster ) && suffix.isInstanceOf [Vector [_]] =>
180
180
var v = suffix.asInstanceOf [Vector [B ]]
181
- val ri = this .reverseIterator()
181
+ val ri = this .reverseIterator
182
182
while (ri.hasNext) v = ri.next() +: v
183
183
v
184
184
case _ => super .appendedAll(suffix)
@@ -195,12 +195,12 @@ final class Vector[+A] private[immutable] (private[collection] val startIndex: I
195
195
prefix.size match {
196
196
case n if n <= TinyAppendFaster || n < (this .size >>> Log2ConcatFaster ) =>
197
197
var v : Vector [B ] = this
198
- val it = prefix.toIndexedSeq.reverseIterator()
198
+ val it = prefix.toIndexedSeq.reverseIterator
199
199
while (it.hasNext) v = it.next() +: v
200
200
v
201
201
case n if this .size < (n >>> Log2ConcatFaster ) && prefix.isInstanceOf [Vector [_]] =>
202
202
var v = prefix.asInstanceOf [Vector [B ]]
203
- val it = this .iterator()
203
+ val it = this .iterator
204
204
while (it.hasNext) v = v :+ it.next()
205
205
v
206
206
case _ => super .prependedAll(prefix)
0 commit comments