예제 #1
0
 public static SubArray <ulong> distinct(this SubArray <ulong> array)
 {
     if (array.Length <= 1)
     {
         return(array);
     }
     return(new SubArray <ulong> {
         Array = array.Array, Start = array.Start, Length = FixedArraySortGroup.Distinct(array.Array, array.Start, array.Length) - array.Start
     });
 }
예제 #2
0
 public static valueType[] distinct <valueType>(this SubArray <ulong> array, Func <ulong, valueType> getValue)
 {
     return(array.Length == 0 ? EmptyArray <valueType> .Array : FixedArraySortGroup.Distinct(array.Array, getValue, array.Start, array.Length));
 }