bisect

Standard library module View source
function bisect_left
bisect_left(a: List[T], x: S, lo: int = 0, hi: Optional[int] = None, T: type, S: type)
function bisect_right
bisect_right(a: List[T], x: S, lo: int = 0, hi: Optional[int] = None, T: type, S: type)
function insort_left
insort_left(a: List[T], x: S, lo: int = 0, hi: Optional[int] = None, T: type, S: type)
function insort_right
insort_right(a: List[T], x: S, lo: int = 0, hi: Optional[int] = None, T: type, S: type)
variable bisect
bisect = bisect_right
variable insort
insort = insort_right