@@ -518,7 +518,7 @@ trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with Iterable
518518 * element (which may be the only element) will be smaller
519519 * if there are fewer than `size` elements remaining to be grouped.
520520 * @example `List(1, 2, 3, 4, 5).sliding(2, 2) = Iterator(List(1, 2), List(3, 4), List(5))`
521- * @example `List(1, 2, 3, 4, 5, 6).sliding(2, 3) = Iterator(List(1, 2), List(4, 5))`
521+ * @example `List(1, 2, 3, 4, 5, 6).sliding(2, 3) = Iterator(List(1, 2), List(4, 5))`
522522 */
523523 def sliding (size : Int , step : Int ): Iterator [C ] =
524524 iterator.sliding(size, step).map(fromSpecific)
@@ -708,7 +708,7 @@ trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with Iterable
708708 * @tparam A2 the element type of the second resulting collection
709709 * @param f the 'split function' mapping the elements of this $coll to an [[scala.util.Either ]]
710710 *
711- * @return a pair of ${coll}s: the first one made of those values returned by `f` that were wrapped in [[scala.util.Left ]],
711+ * @return a pair of ${coll}s: the first one made of those values returned by `f` that were wrapped in [[scala.util.Left ]],
712712 * and the second one made of those wrapped in [[scala.util.Right ]].
713713 */
714714 def partitionMap [A1 , A2 ](f : A => Either [A1 , A2 ]): (CC [A1 ], CC [A2 ]) = {
@@ -982,9 +982,9 @@ trait SortedSetFactoryDefaults[+A,
982982 + WithFilterCC [x] <: IterableOps [x, WithFilterCC , WithFilterCC [x]] with Set [x]] extends SortedSetOps [A @ uncheckedVariance, CC , CC [A @ uncheckedVariance]] {
983983 self : IterableOps [A , WithFilterCC , _] =>
984984
985- override protected def fromSpecific (coll : IterableOnce [A @ uncheckedVariance]): CC [A @ uncheckedVariance] = sortedIterableFactory.from(coll)(ordering)
986- override protected def newSpecificBuilder : mutable.Builder [A @ uncheckedVariance, CC [A @ uncheckedVariance]] = sortedIterableFactory.newBuilder[A ](ordering)
987- override def empty : CC [A @ uncheckedVariance] = sortedIterableFactory.empty(ordering)
985+ override protected def fromSpecific (coll : IterableOnce [A @ uncheckedVariance]): CC [A @ uncheckedVariance] = sortedIterableFactory.from(coll)(using ordering)
986+ override protected def newSpecificBuilder : mutable.Builder [A @ uncheckedVariance, CC [A @ uncheckedVariance]] = sortedIterableFactory.newBuilder[A ](using ordering)
987+ override def empty : CC [A @ uncheckedVariance] = sortedIterableFactory.empty(using ordering)
988988
989989 override def withFilter (p : A => Boolean ): SortedSetOps .WithFilter [A , WithFilterCC , CC ] =
990990 new SortedSetOps .WithFilter [A , WithFilterCC , CC ](this , p)
@@ -1036,9 +1036,9 @@ trait SortedMapFactoryDefaults[K, +V,
10361036 + UnsortedCC [x, y] <: Map [x, y]] extends SortedMapOps [K , V , CC , CC [K , V @ uncheckedVariance]] with MapOps [K , V , UnsortedCC , CC [K , V @ uncheckedVariance]] {
10371037 self : IterableOps [(K , V ), WithFilterCC , _] =>
10381038
1039- override def empty : CC [K , V @ uncheckedVariance] = sortedMapFactory.empty(ordering)
1040- override protected def fromSpecific (coll : IterableOnce [(K , V @ uncheckedVariance)]): CC [K , V @ uncheckedVariance] = sortedMapFactory.from(coll)(ordering)
1041- override protected def newSpecificBuilder : mutable.Builder [(K , V @ uncheckedVariance), CC [K , V @ uncheckedVariance]] = sortedMapFactory.newBuilder[K , V ](ordering)
1039+ override def empty : CC [K , V @ uncheckedVariance] = sortedMapFactory.empty(using ordering)
1040+ override protected def fromSpecific (coll : IterableOnce [(K , V @ uncheckedVariance)]): CC [K , V @ uncheckedVariance] = sortedMapFactory.from(coll)(using ordering)
1041+ override protected def newSpecificBuilder : mutable.Builder [(K , V @ uncheckedVariance), CC [K , V @ uncheckedVariance]] = sortedMapFactory.newBuilder[K , V ](using ordering)
10421042
10431043 override def withFilter (p : ((K , V )) => Boolean ): collection.SortedMapOps .WithFilter [K , V , WithFilterCC , UnsortedCC , CC ] =
10441044 new collection.SortedMapOps .WithFilter [K , V , WithFilterCC , UnsortedCC , CC ](this , p)
0 commit comments