We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd4efa1 commit ba28b85Copy full SHA for ba28b85
src/Extensions/Span/SpanExtensions.Linq.cs
@@ -472,8 +472,7 @@ public static BigInteger Average(this Span<BigInteger> source)
472
/// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
473
public static T Min<T>(this Span<T> source) where T : INumber<T>
474
{
475
- T sum = source.Sum();
476
- return sum / T.CreateChecked(source.Length);
+ return ReadOnlySpanExtensions.Min<T>(source)
477
}
478
#else
479
@@ -621,5 +620,8 @@ public static BigInteger Min(this Span<BigInteger> source)
621
620
return ReadOnlySpanExtensions.Min(source);
622
623
#endif
+/*########################################## MAX ##########################################*/
624
+
625
626
627
0 commit comments