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

Unified Diff: sdk/lib/core/iterable.dart

Issue 11410086: Use iterator, moveNext(), current. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Address comments. Created 8 years, 1 month 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
Index: sdk/lib/core/iterable.dart
diff --git a/sdk/lib/core/iterable.dart b/sdk/lib/core/iterable.dart
index f3cfa9354aa126d6d0df399dae4b52ca623f6c24..92c9330f0d7246887c10dbff77a28256cf50f8fd 100644
--- a/sdk/lib/core/iterable.dart
+++ b/sdk/lib/core/iterable.dart
@@ -20,7 +20,7 @@ abstract class Iterable<E> {
/**
* Returns an [Iterator] that iterates over this [Iterable] object.
*/
- Iterator<E> iterator();
+ Iterator<E> get iterator;
/**
* Returns a new collection with the elements [: f(e) :]
@@ -115,5 +115,5 @@ abstract class Iterable<E> {
/**
* Returns true if there is no element in this collection.
*/
- bool get isEmpty => !iterator().hasNext;
+ bool get isEmpty => !iterator.moveNext();
}

Powered by Google App Engine
This is Rietveld 408576698