add method

TreapOfDouble add(
  1. double item
)
override

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));