binary_search method

binary_search

Searches the entire sorted array list for an element using the default comparer and returns the zero-based index of the element.

Returns

The zero-based index of value in the sorted array list, if item is found; otherwise, a negative number, which is the bitwise complement of the index of the next element that is larger than value or, if there is no larger element, the bitwise complement of array list Count.

def binary_search(self, item):
    ...
ParameterTypeDescription
itemExternalConnectionThe System.Object to locate. The value can be null.

See Also