miva_array_binarysearch()

 
Performs a binary search for "key" in "array". "array" must have been previously sorted.
Syntax
miva_array_binarysearch( key, array var, callback, data var )
Returns the index of "key" in "array" or 0 if no match was found.
  • key = The value that will be searched for.
  • array var = The array that will be searched.
  • callback = The name of a callback function. See below.
  • data var = Optional data that is passed through to the callback function
User Annotations: miva_array_binarysearch