TreapOfInt.of constructor
TreapOfInt.of(
- Iterable<
int> items, [ - Comparator<
int> ? compare
Creates a Treap containing the items
.
Implementation
TreapOfInt.of(Iterable<int> items, [Comparator<int>? compare])
: base = TreapBase.of(
items,
intNodeFactory,
compare ?? (a, b) => a - b,
);