Beispiel #1
0
 // Search returns the result of applying SearchInts to the receiver and x.
 public static long Search(this IntSlice p, long x)
 {
     return(SearchInts(p, x));
 }
Beispiel #2
0
 // Sort is a convenience method.
 public static void Sort(this IntSlice p)
 {
     Sort(p);
 }
Beispiel #3
0
 public static bool Less(this IntSlice p, long i, long j)
 {
     return(p[i] < p[j]);
 }
Beispiel #4
0
 public static void Swap(this IntSlice p, long i, long j)
 {
     p[i] = p[j];
     p[j] = p[i];
 }
Beispiel #5
0
 public static long Len(this IntSlice p)
 {
     return(len(p));
 }