14 lines
269 B
C#
14 lines
269 B
C#
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
|
|||
|
namespace BITKit
|
|||
|
{
|
|||
|
public static partial class Extensions
|
|||
|
{
|
|||
|
public static float GetDifference(this IEnumerable<float> self)
|
|||
|
{
|
|||
|
return self.Max() - self.Min();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|