int[] buf | The array to search. |
Elem pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to search. |
int[] pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to search. |
Elem pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to search. |
int[] pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to search. |
Elem pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to search. |
int[] pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to search. |
Elem pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to search. |
int[] pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to search. |
Pred1E pred | The evaluation predicate, which should return true if the element is a valid match and false if not. This predicate may be any callable type. |
int[] buf | The array to search. |
Pred1E pred | The evaluation predicate, which should return true if the element is a valid match and false if not. This predicate may be any callable type. |
int[] buf | The array to scan. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to search. |
Elem pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to search. |
int[] pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] bufA | The array to evaluate. |
int[] bufB | The array to match against. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to scan. |
Elem pat | The pattern to match. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to scan. |
Pred1E pred | The evaluation predicate, which should return true if the element is a valid match and false if not. This predicate may be any callable type. |
int[] buf | The array to scan. |
Elem pat | The pattern to match. |
Elem val | The value to substitute. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to scan. |
Elem val | The value to substitute. |
Pred2E pred | The evaluation predicate, which should return true if the element is a valid match and false if not. This predicate may be any callable type. |
int[] buf | The array to scan. This parameter is not marked 'ref' to allow temporary slices to be modified. As buf is not resized in any way, omitting the 'ref' qualifier has no effect on the result of this operation, even though it may be viewed as a side-effect. |
Elem pat | The pattern to match against. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to scan. This parameter is not marked 'ref' to allow temporary slices to be modified. As buf is not resized in any way, omitting the 'ref' qualifier has no effect on the result of this operation, even though it may be viewed as a side-effect. |
Elem pat | The pattern to match against. |
int[] buf | The array to scan. This parameter is not marked 'ref' to allow temporary slices to be modified. As buf is not resized in any way, omitting the 'ref' qualifier has no effect on the result of this operation, even though it may be viewed as a side-effect. |
Pred1E pred | The evaluation predicate, which should return true if the element satisfies the condition and false if not. This predicate may be any callable type. |
int[] buf | The array to scan. This parameter is not marked 'ref' to allow temporary slices to be modified. As buf is not resized in any way, omitting the 'ref' qualifier has no effect on the result of this operation, even though it may be viewed as a side-effect. |
Pred2E pred | The evaluation predicate, which should return true if e1 is equal to e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to shuffle. |
Oper1A oper | The randomize operation, which should return a number in the range [0 .. N for any supplied value N. This routine may be any callable type. |
int[] buf | The array to partition. This parameter is not marked 'ref' to allow temporary slices to be sorted. As buf is not resized in any way, omitting the 'ref' qualifier has no effect on the result of this operation, even though it may be viewed as a side-effect. |
Pred1E pred | The evaluation predicate, which should return true if the element satisfies the condition and false if not. This predicate may be any callable type. |
int[] buf | The array to partition. This parameter is not marked 'ref' to allow temporary slices to be sorted. As buf is not resized in any way, omitting the 'ref' qualifier has no effect on the result of this operation, even though it may be viewed as a side-effect. |
Num num | The number of elements which are considered significant in this array, where num - 1 is the pivot around which partial sorting will occur. For example, if num is buf.length / 2 then select will effectively partition the array around its median value, with the elements in the first half of the array evaluating as less than or equal to the elements in the second half. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
buf | The array to sort. This parameter is not marked 'ref' to allow temporary slices to be sorted. As buf is not resized in any way, omitting the 'ref' qualifier has no effect on the result of this operation, even though it may be viewed as a side-effect. |
pred | The evaluation predicate, which should return true if e1 is
less than e2 and false if not. This predicate may be any
callable type.
Sorts buf using the supplied predicate or '<' if none is supplied. The algorithm is not required to be stable. The current implementation is based on quicksort, but uses a three-way partitioning scheme to improve performance for ranges containing duplicate values (Bentley and McIlroy, 1993). |
buf | The array to sort. This parameter is not marked 'ref' to allow temporary slices to be sorted. As buf is not resized in any way, omitting the 'ref' qualifier has no effect on the result of this operation, even though it may be viewed as a side-effect. |
pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] buf | The sorted array to search. |
Elem pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] buf | The sorted array to search. |
Elem pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] buf | The sorted array to search. |
Elem pat | The pattern to search for. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] setA | The sorted array to evaluate. |
int[] setB | The sorted array to match against. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] setA | The first sorted array to evaluate. |
int[] setB | The second sorted array to evaluate. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] setA | The first sorted array to evaluate. |
int[] setB | The second sorted array to evaluate. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] setA | The first sorted array to evaluate. |
int[] setB | The second sorted array to evaluate. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] setA | The first sorted array to evaluate. |
int[] setB | The second sorted array to evaluate. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] buf | The array to convert. This parameter is not marked 'ref' to allow temporary slices to be sorted. As buf is not resized in any way, omitting the 'ref' qualifier has no effect on the result of this operation, even though it may be viewed as a side-effect. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] buf | The heap to modify. This parameter is marked 'ref' because buf.length will be altered. |
Elem val | The element to push onto buf. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] buf | The heap to modify. This parameter is marked 'ref' because buf.length will be altered. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] buf | The heap to sort. This parameter is not marked 'ref' to allow temporary slices to be sorted. As buf is not resized in any way, omitting the 'ref' qualifier has no effect on the result of this operation, even though it may be viewed as a side-effect. |
Pred2E pred | The evaluation predicate, which should return true if e1 is less than e2 and false if not. This predicate may be any callable type. |
int[] array | the array. |
Map2E func | the function to apply. |
int[] buf | a buffer in which to store the results. This will be resized if it does not have sufficient space. |
int[] array | the array to reduce |
Reduce2E func | the reductor function |
int[] array | The array to scan. |
Pred1E pred | The evaluation predicate, which should return true if the element satisfies the condition and false if not. This predicate may be any callable type. |
int[] buf | an optional buffer into which elements are filtered. This is the array that gets returned to you. |