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

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: Rebase 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 afe5eb25a36682cfe466e19801d535cc87cbfdca..69ceff4cd417051154fc551cdb4b116d82e86311 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 FilteredIterable<int>(this, f);
}
bool every(bool f(element)) {

Powered by Google App Engine
This is Rietveld 408576698