intersection method

TreapOfString intersection(
  1. TreapOfString other
)
override

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

Implementation

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