Bisect<E> extension

on
  • List<E>

Methods

bisect(E element, {int compare(E, E), int low, int high}) → int
Just and alias for bisectRight.
bisectLeft(E element, {int compare(E, E), int low, int high}) → int
Returns the index where an element should be inserted in a list, assuming the list is sorted by a compare function. [...]
bisectRight(E element, {int compare(E, E), int low, int high}) → int
Returns the index where an element should be inserted in a list, assuming the list is sorted by a compare function. [...]
insort(E element, {int compare(E, E), int low, int high}) → void
Just an alias for insortRight.
insortLeft(E element, {int compare(E, E), int low, int high}) → void
Inserts an element to a sorted list while keeping it sorted, assuming this list is already sorted. [...]
insortRight(E element, {int compare(E, E), int low, int high}) → void
Inserts an element to a sorted list while keeping it sorted, assuming this list is already sorted. [...]