BinarySearchComparator

typealias BinarySearchComparator<T, D> = (target: T, item: D) -> Double

The comparator function for performing binary searches.

Parameters

target

The target value for the search.

item

The item to compare the target value against.