Trevor Hackman
03/08/2022, 10:06 PMbinarySearchIndexed
With a signature of perhaps
fun <T : Comparable<T>> List<T>.binarySearchIndexed(
fromIndex: Int = 0,
toIndex: Int = size,
comparison: (T, Int) -> Int,
): Int
Dominaezzz
03/08/2022, 10:12 PM.withIndex().binarySearch { ... }
.