copy method

TreapOfDouble copy()
override

Returns a copy of this treap.

This is an O(1) operation as it only copies the root reference.

Implementation

TreapOfDouble copy() => TreapOfDouble._(base.copy());