takeWhile method

  1. @override
RIterator<T> takeWhile(
  1. bool f(
    1. T
    )
)
override

TTakes the first count elements from the RIterator while f is true.

Implementation

@override
RIterator<T> takeWhile(bool Function(T) f) =>
    RIterator.fromIterable(super.takeWhile(f));