Exemplo n.º 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));
 }
Exemplo n.º 2
0
Arquivo: sort.cs Projeto: zjmit/go2cs
 // Sort is a convenience method.
 public static void Sort(this IntSlice p)
 {
     Sort(p);
 }
Exemplo n.º 3
0
Arquivo: sort.cs Projeto: zjmit/go2cs
 public static bool Less(this IntSlice p, long i, long j)
 {
     return(p[i] < p[j]);
 }
Exemplo n.º 4
0
Arquivo: sort.cs Projeto: zjmit/go2cs
 public static void Swap(this IntSlice p, long i, long j)
 {
     p[i] = p[j];
     p[j] = p[i];
 }
Exemplo n.º 5
0
Arquivo: sort.cs Projeto: zjmit/go2cs
 public static long Len(this IntSlice p)
 {
     return(len(p));
 }