| Index: lib/src/iterable_zip.dart
|
| diff --git a/lib/iterable_zip.dart b/lib/src/iterable_zip.dart
|
| similarity index 61%
|
| copy from lib/iterable_zip.dart
|
| copy to lib/src/iterable_zip.dart
|
| index 772b07e66a4002a0565f4cfe9d22f1e8a1e8e7e7..30acb0e72477600b6e44c5fc4dad522a37dc3c38 100644
|
| --- a/lib/iterable_zip.dart
|
| +++ b/lib/src/iterable_zip.dart
|
| @@ -2,33 +2,24 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -/**
|
| - * Zipping multiple iterables into one iterable of tuples of values.
|
| - */
|
| -library dart.pkg.collection.iterable_zip;
|
| +import "dart:collection";
|
|
|
| -import "dart:collection" show IterableBase;
|
| -
|
| -/**
|
| - * Iterable that iterates over lists of values from other iterables.
|
| - *
|
| - * When [iterator] is read, an [Iterator] is created for each [Iterable] in
|
| - * the [Iterable] passed to the constructor.
|
| - *
|
| - * As long as all these iterators have a next value, those next values are
|
| - * combined into a single list, which becomes the next value of this
|
| - * [Iterable]'s [Iterator]. As soon as any of the iterators run out,
|
| - * the zipped iterator also stops.
|
| - */
|
| +/// Iterable that iterates over lists of values from other iterables.
|
| +///
|
| +/// When [iterator] is read, an [Iterator] is created for each [Iterable] in
|
| +/// the [Iterable] passed to the constructor.
|
| +///
|
| +/// As long as all these iterators have a next value, those next values are
|
| +/// combined into a single list, which becomes the next value of this
|
| +/// [Iterable]'s [Iterator]. As soon as any of the iterators run out,
|
| +/// the zipped iterator also stops.
|
| class IterableZip extends IterableBase<List> {
|
| final Iterable<Iterable> _iterables;
|
| IterableZip(Iterable<Iterable> iterables)
|
| : this._iterables = iterables;
|
|
|
| - /**
|
| - * Returns an iterator that combines values of the iterables' iterators
|
| - * as long as they all have values.
|
| - */
|
| + /// Returns an iterator that combines values of the iterables' iterators
|
| + /// as long as they all have values.
|
| Iterator<List> get iterator {
|
| List iterators = _iterables.map((x) => x.iterator).toList(growable: false);
|
| // TODO(lrn): Return an empty iterator directly if iterators is empty?
|
|
|