Chromium Code Reviews| Index: runtime/lib/growable_array.dart |
| diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart |
| index 1a0bfffe74b76cc84c152db07ece8782d550a370..b63c083e4da78451be7b9dd52136883f730446ec 100644 |
| --- a/runtime/lib/growable_array.dart |
| +++ b/runtime/lib/growable_array.dart |
| @@ -184,9 +184,7 @@ class _GrowableObjectArray<T> implements List<T> { |
| return Collections.reduce(this, initialValue, combine); |
| } |
| - Collection<T> where(bool f(T element)) { |
| - return Collections.where(this, new _GrowableObjectArray<T>(), f); |
| - } |
| + Iterable<T> where(bool f(T element)) => new FilteredIterable<T>(this, f); |
|
Lasse Reichstein Nielsen
2012/11/20 11:44:57
We can't just inherit this from Iterable?
floitsch
2012/11/28 13:49:38
Yes. we could, but currently this class is not ext
|
| bool every(bool f(T element)) { |
| return Collections.every(this, f); |