take method

TreapOfString 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

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