bsearch EntryPoint
Utility functions for performing binary search in various scenarios.
Functions
Function | Description |
---|---|
firstElement(array, predicate) | Returns the first element in array whose value satisfies the predicate . |
firstElementAsync(array, predicate) | Returns the first element in array whose value satisfies the predicate . |
firstIndex(array, predicate) | Returns the first index in array whose value satisfies the predicate . |
firstIndexAsync(array, predicate) | Returns the first index in array whose value satisfies the predicate . |
largestFloat(min, max, predicate, maxIterations) | Returns the largest floating-point value in range [min , max ] that is accepted by the predicate . |
largestFloatAsync(min, max, predicate, maxIterations) | Returns the largest floating-point value in range [min , max ] that is accepted by the predicate . |
largestInt(min, max, predicate) | Returns the largest integer value in range [min , max ] that is accepted by the predicate . |
largestIntAsync(min, max, predicate) | Returns the largest integer value in range [min , max ] that is accepted by the predicate . |
lastElement(array, predicate) | Returns the last element in array whose value satisfies the predicate . |
lastElementAsync(array, predicate) | Returns the last element in array whose value satisfies the predicate . |
lastIndex(array, predicate) | Returns the last index in array whose value satisfies the predicate . |
lastIndexAsync(array, predicate) | Returns the last index in array whose value satisfies the predicate . |
smallestFloat(min, max, predicate, maxIterations) | Returns the smallest floating-point value in range [min , max ] that is accepted by the predicate . |
smallestFloatAsync(min, max, predicate, maxIterations) | Returns the smallest floating-point value in range [min , max ] that is accepted by the predicate . |
smallestInt(min, max, predicate) | Returns the smallest integer value in range [min , max ] that is accepted by the predicate . |
smallestIntAsync(min, max, predicate) | Returns the smallest integer value in range [min , max ] that is accepted by the predicate . |