int findsorted(<type>array[], <type>target)
int findsorted(<type>array[], <type>target, int start)
int findsorted(<type>array[], <type>target, int start, int end)
Returns the position of the first occurrence of the target
value within the array
. You can limit the result to the first occurrence at or after a start
position, and at or before an end
position.
This function is faster than find(array, target) when the array is sorted, but will not return the correct result on unsorted arrays.
Returns a negative number if the target is not found.
See also | |
array |