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

Unified Diff: runtime/lib/byte_array.dart

Issue 11412086: Make 'where' lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: FilteredIterable/Iterator -> WhereIterable/Iterator. 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: runtime/lib/byte_array.dart
diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
index 33c1a618dc8ce483d7b99e8adeb963bbeb0739c5..2d6a7c68c350723f477c0ef783be7174064047c0 100644
--- a/runtime/lib/byte_array.dart
+++ b/runtime/lib/byte_array.dart
@@ -142,7 +142,7 @@ abstract class _ByteArrayBase {
}
Collection where(bool f(element)) {
- return Collections.where(this, new List(), f);
+ return new WhereIterable<int>(this, f);
}
bool every(bool f(element)) {

Powered by Google App Engine
This is Rietveld 408576698