Chromium Code Reviews| Index: runtime/lib/growable_array.dart |
| diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart |
| index 39e35fdb049586f3f867094c0b8e11ecf73dcca0..6cc0498a50b92c9421d10663f7f92520649fdff2 100644 |
| --- a/runtime/lib/growable_array.dart |
| +++ b/runtime/lib/growable_array.dart |
| @@ -242,10 +242,12 @@ class _GrowableObjectArray<T> implements List<T> { |
| return buffer.toString(); |
| } |
| - List mappedBy(f(T element)) { |
| + Iterable map(f(T element)) { |
| return IterableMixinWorkaround.mappedByList(this, f); |
|
floitsch
2013/01/30 14:48:44
should return an Iterable.
Lasse Reichstein Nielsen
2013/01/31 11:33:49
Done.
|
| } |
| + Iterable mappedBy(f(T element)) => map(f); |
| + |
| reduce(initialValue, combine(previousValue, T element)) { |
| return IterableMixinWorkaround.reduce(this, initialValue, combine); |
| } |
| @@ -254,7 +256,7 @@ class _GrowableObjectArray<T> implements List<T> { |
| return IterableMixinWorkaround.where(this, f); |
| } |
| - List<T> take(int n) { |
| + Iterable<T> take(int n) { |
| return IterableMixinWorkaround.takeList(this, n); |
| } |
| @@ -262,7 +264,7 @@ class _GrowableObjectArray<T> implements List<T> { |
| return IterableMixinWorkaround.takeWhile(this, test); |
| } |
| - List<T> skip(int n) { |
| + Iterable<T> skip(int n) { |
| return IterableMixinWorkaround.skipList(this, n); |
| } |