intersection method

TreapOfDouble intersection(
  1. TreapOfDouble other
)
override

Returns a new treap containing only items present in both this treap and other.

Implementation

TreapOfDouble intersection(TreapOfDouble other) =>
    TreapOfDouble._(base.intersection(other.base));