take method

TreapOfDouble take(
  1. int count
)
override

Returns a new treap containing the first n items of the sorted sequence.

Returns the original treap if n >= size.

Implementation

TreapOfDouble take(int count) => TreapOfDouble._(base.take(count));