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

Unified Diff: sdk/lib/html/templates/immutable_list_mixin.darttemplate

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: sdk/lib/html/templates/immutable_list_mixin.darttemplate
diff --git a/sdk/lib/html/templates/immutable_list_mixin.darttemplate b/sdk/lib/html/templates/immutable_list_mixin.darttemplate
index 89b4599d4e50cd8591d072fc618c08422adc283a..fb3df62477090677a05e56288a37f1e285babc2d 100644
--- a/sdk/lib/html/templates/immutable_list_mixin.darttemplate
+++ b/sdk/lib/html/templates/immutable_list_mixin.darttemplate
@@ -35,8 +35,7 @@ $endif
Iterable mappedBy(f($E element)) =>
new MappedIterable<$E, dynamic>(this, f);
- Collection<$E> where(bool f($E element)) =>
- _Collections.where(this, <$E>[], f);
+ Iterable<$E> where(bool f($E element)) => new WhereIterable<$E>(this, f);
bool every(bool f($E element)) => _Collections.every(this, f);

Powered by Google App Engine
This is Rietveld 408576698