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

Unified Diff: samples/clock/balls.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: samples/clock/balls.dart
diff --git a/samples/clock/balls.dart b/samples/clock/balls.dart
index 3062a4cbc0f8d7f8caa07265dc7f02188798e412..d497c6dcd2cf1730e1e44d395e48225367bf2efd 100644
--- a/samples/clock/balls.dart
+++ b/samples/clock/balls.dart
@@ -46,7 +46,7 @@ class Balls {
lastTime = now;
// incrementally move each ball, removing balls that are offscreen
- balls = balls.where((ball) => ball.tick(delta));
+ balls = balls.where((ball) => ball.tick(delta)).toList();
collideBalls(delta);
}

Powered by Google App Engine
This is Rietveld 408576698