collectArr method

Arr<T> collectArr()

Implementation

Arr<T> collectArr() {
  final list = <T>[];
  while (moveNext()) {
    list.add(current);
  }
  return Arr.fromList(list);
}