ListBinarySearchExtensions<T> extension
Binary search and merge sorted on lists.
- on
-
- List<
T>
- List<
Methods
-
binarySearchIndex(
T value, [int compare(T a, T b)?]) → int -
Available on List<
Returns the index ofT> , provided by the ListBinarySearchExtensions extensionvaluein this sorted list, or -1 if not found. -
binarySearchInsertPoint(
T value, [int compare(T a, T b)?]) → int -
Available on List<
Returns the insertion point forT> , provided by the ListBinarySearchExtensions extensionvalue(index where it would be inserted to preserve order).