@@ -106,17 +106,17 @@ object opaques:
106
106
genericArrayOps(arr).flatten
107
107
108
108
/** Folds the elements of this array using the specified associative binary operator. */
109
- extension [T ](arr : IArray [T ]) def fold [U >: T : ClassTag ](z : U )(op : (U , U ) => U ): U =
109
+ extension [T ](arr : IArray [T ]) def fold [U >: T ](z : U )(op : (U , U ) => U ): U =
110
110
genericArrayOps(arr).fold(z)(op)
111
111
112
112
/** Applies a binary operator to a start value and all elements of this array,
113
113
* going left to right. */
114
- extension [T ](arr : IArray [T ]) def foldLeft [U : ClassTag ](z : U )(op : (U , T ) => U ): U =
114
+ extension [T ](arr : IArray [T ]) def foldLeft [U ](z : U )(op : (U , T ) => U ): U =
115
115
genericArrayOps(arr).foldLeft(z)(op)
116
116
117
117
/** Applies a binary operator to all elements of this array and a start value,
118
118
* going right to left. */
119
- extension [T ](arr : IArray [T ]) def foldRight [U : ClassTag ](z : U )(op : (T , U ) => U ): U =
119
+ extension [T ](arr : IArray [T ]) def foldRight [U ](z : U )(op : (T , U ) => U ): U =
120
120
genericArrayOps(arr).foldRight(z)(op)
121
121
122
122
/** Tests whether a predicate holds for all elements of this array. */
@@ -219,7 +219,7 @@ object opaques:
219
219
220
220
/** Sorts this array according to the Ordering which results from transforming
221
221
* an implicitly given Ordering with a transformation function. */
222
- extension [T ](arr : IArray [T ]) def sortBy [U : ClassTag ](f : T => U )(using math.Ordering [U ]): IArray [T ] =
222
+ extension [T ](arr : IArray [T ]) def sortBy [U ](f : T => U )(using math.Ordering [U ]): IArray [T ] =
223
223
genericArrayOps(arr).sortBy(f)
224
224
225
225
/** Sorts this array according to a comparison function. */
@@ -239,7 +239,7 @@ object opaques:
239
239
genericArrayOps(arr).splitAt(n)
240
240
241
241
/** Tests whether this array starts with the given array. */
242
- extension [T ](arr : IArray [T ]) def startsWith [U >: T : ClassTag ](that : IArray [U ], offset : Int = 0 ): Boolean =
242
+ extension [T ](arr : IArray [T ]) def startsWith [U >: T ](that : IArray [U ], offset : Int = 0 ): Boolean =
243
243
genericArrayOps(arr).startsWith(that)
244
244
245
245
/** The rest of the array without its first element. */
@@ -269,7 +269,7 @@ object opaques:
269
269
/** Returns an array formed from this array and another iterable collection
270
270
* by combining corresponding elements in pairs.
271
271
* If one of the two collections is longer than the other, its remaining elements are ignored. */
272
- extension [T ](arr : IArray [T ]) def zip [U : ClassTag ](that : IArray [U ]): IArray [(T , U )] =
272
+ extension [T ](arr : IArray [T ]) def zip [U ](that : IArray [U ]): IArray [(T , U )] =
273
273
genericArrayOps(arr).zip(that)
274
274
275
275
/** Conversion from IArray to immutable.ArraySeq */
0 commit comments