lowerBound method

Bloom<int> lowerBound(
  1. E element, [
  2. int compare(
    1. E a,
    2. E b
    )?
])

Returns the index where element should be in this sorted list.

  • element: The target element to locate the lower bound for.
  • compare: Optional comparator overriding Comparable.compareTo.

Implementation

Bloom<int> lowerBound(E element, [int Function(E a, E b)? compare]) =>
    computed((via) => col.ListExtensions(via(_listBloom))
        .lowerBound(element, compare ?? (a, b) => a.compareTo(b)));