TreapOfDouble.of constructor

TreapOfDouble.of(
  1. Iterable<double> items, [
  2. Comparator<double>? compare
])

Creates a Treap containing the items.

Implementation

TreapOfDouble.of(Iterable<double> items, [Comparator<double>? compare])
    : base = TreapBase.of(
        items,
        doubleNodeFactory,
        compare ?? (a, b) => a < b ? -1 : (a > b ? 1 : 0),
      );