takeWhile method

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

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

Implementation

@override
@pragma("vm:prefer-inline")
Iter<T> takeWhile(bool Function(T) f) => Iter.fromIterable(super.takeWhile(f));