We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1c85cd commit 4183ea2Copy full SHA for 4183ea2
1 file changed
LinqStatistics/EnumerableStatsMode.cs
@@ -14,7 +14,7 @@ public static partial class EnumerableStats
14
/// <returns>The modes of a sequence of values</returns>
15
public static IEnumerable<T> Modes<T>(this IEnumerable<T?> source) where T : struct
16
{
17
- IEnumerable<T> values = source.AllValues();
+ var values = source.AllValues();
18
if (values.Any())
19
return values.Modes<T>();
20
@@ -43,7 +43,7 @@ orderby count.Count descending
43
/// <returns>The mode of a sequence of values</returns>
44
public static T? Mode<T>(this IEnumerable<T?> source) where T : struct
45
46
47
48
return values.Mode<T>();
49
0 commit comments