Beispiel #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
     });
 }
Beispiel #2
0
 public static int SortGroupCount <valueType>(this SubArray <valueType> array, Func <valueType, ulong> getValue)
 {
     return(array.Length == 0 ? 0 : FixedArraySortGroup.SortGroupCount(array.Array, getValue, array.Start, array.Length));
 }
Beispiel #3
0
 public static LeftArray <SubArray <valueType> > SortGroup <valueType>(this SubArray <valueType> array, Func <valueType, ulong> getValue)
 {
     return(array.Length == 0 ? new LeftArray <SubArray <valueType> >(0) : FixedArraySortGroup.SortGroup(array.Array, getValue, array.Start, array.Length));
 }
Beispiel #4
0
 public static KeyValue <ulong, int>[] SortGroupCount(this SubArray <ulong> array)
 {
     return(array.Length == 0 ? EmptyArray <KeyValue <ulong, int> > .Array : FixedArraySortGroup.SortGroupCount(array.Array, array.Start, array.Length));
 }
Beispiel #5
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));
 }