takeWhile method

TreapSetOfInt takeWhile(
  1. bool test(
    1. int value
    )
)
override

Returns a new set containing the leading elements while test is true.

Implementation

TreapSetOfInt takeWhile(bool Function(int value) test) =>
    TreapSetOfInt._(base.takeWhile(test));