add method
Adds an item
to this treap.
If the item
is already present, returns the original treap.
Otherwise, a new treap is returned with the item added.
Implementation
TreapOfDouble add(double item) => TreapOfDouble._(base.add(item));
Adds an item
to this treap.
If the item
is already present, returns the original treap.
Otherwise, a new treap is returned with the item added.
TreapOfDouble add(double item) => TreapOfDouble._(base.add(item));