firstHalf property

Iterable<T> get firstHalf

Implementation

Iterable<T> get firstHalf sync* {
  final cut = length / 2;
  final it = iterator;
  int c = 0;
  while (c < cut) {
    it.moveNext();
    yield it.current;
    c++;
  }
}