How to use binary search on an existing SortedList with a key function?
How to use binary search on an existing SortedList with a key function? Question: I would like to use binary search on a SortedList with a key function, e.g. similarly to bisect_right() in the bisect module. However, SortedList.bisect_right() only supports searching by value. How to make it work with a key function? Asked By: Eugene …