Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2239)

Unified Diff: packages/quiver/lib/src/iterables/cycle.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/quiver/lib/src/iterables/count.dart ('k') | packages/quiver/lib/src/iterables/enumerate.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « packages/quiver/lib/src/iterables/count.dart ('k') | packages/quiver/lib/src/iterables/enumerate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698