| Index: packages/quiver/lib/src/iterables/cycle.dart
|
| diff --git a/packages/quiver/lib/src/iterables/cycle.dart b/packages/quiver/lib/src/iterables/cycle.dart
|
| index 5cf3b12918c8e6916f20f538069c65245f316a96..9b6fe0ebb89334d5fc927af51449e694f3b2ea88 100644
|
| --- a/packages/quiver/lib/src/iterables/cycle.dart
|
| +++ b/packages/quiver/lib/src/iterables/cycle.dart
|
| @@ -14,11 +14,9 @@
|
|
|
| part of quiver.iterables;
|
|
|
| -/**
|
| - * Returns an [Iterable] that infinitely cycles through the elements of
|
| - * [iterable]. If [iterable] is empty, the returned Iterable will also be empty.
|
| - */
|
| -Iterable cycle(Iterable iterable) => new _Cycle(iterable);
|
| +/// Returns an [Iterable] that infinitely cycles through the elements of
|
| +/// [iterable]. If [iterable] is empty, the returned Iterable will also be empty.
|
| +Iterable<T> cycle<T>(Iterable<T> iterable) => new _Cycle<T>(iterable);
|
|
|
| class _Cycle<T> extends InfiniteIterable<T> {
|
| final Iterable<T> _iterable;
|
| @@ -38,7 +36,7 @@ class _CycleIterator<T> implements Iterator<T> {
|
| final Iterable<T> _iterable;
|
| Iterator<T> _iterator;
|
|
|
| - _CycleIterator(_iterable)
|
| + _CycleIterator(Iterable<T> _iterable)
|
| : _iterable = _iterable,
|
| _iterator = _iterable.iterator;
|
|
|
|
|