function binarySearch
source · line 30public
public fun <T : Compare<T>> List<T>.binarySearch(element: T, fromIndex: Long = 0L, toIndex: Long = this.size): Long
Extension receiver: List<T>
Searches a range sorted by the same ordering. The range is fromIndex inclusive to toIndex exclusive; absence returns -(insertionIndex + 1).
parameter receiver
source · line 30public
List<T>
parameter element
source · line 31public
element: T
parameter toIndex
source · line 31public
toIndex: Long = this.size
type parameter T
source · line 30public
T : Compare<T>
parameter fromIndex
source · line 31public
fromIndex: Long = 0L