(so were clear, the existing return type is a simp...
# announcements
g
(so were clear, the existing return type is a simple
int
, and it's documented as follows:
the index of the search key, if it is contained in the list; otherwise,
(-(insertion point) - 1)
. The insertion point is defined as the point at which the key would be inserted into the list: the index of the first element greater than the key, or
list.size()
if all elements in the list are less than the specified key. Note that this guarantees that the return value will be
>= 0
if and only if the key is found.
which is hideous and awful)