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

Unified Diff: sdk/lib/collection/collections.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/collection/collections.dart
diff --git a/sdk/lib/collection/collections.dart b/sdk/lib/collection/collections.dart
index 29fe0deb40102ad863fbc471c1165b4e61724e51..df0f412436462dd1ba6e7591a48d160b8042e726 100644
--- a/sdk/lib/collection/collections.dart
+++ b/sdk/lib/collection/collections.dart
@@ -59,7 +59,7 @@ class Collections {
}
static bool isEmpty(Iterable iterable) {
- return !iterable.iterator().hasNext;
+ return !iterable.iterator.moveNext();
}
// TODO(jjb): visiting list should be an identityHashSet when it exists

Powered by Google App Engine
This is Rietveld 408576698