Index: runtime/lib/array.dart |
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart |
index 1441dc2a50e4b34a97de693994693f7f365f85ea..3ce453bba5e3625287e521949cf1ca9908b2a019 100644 |
--- a/runtime/lib/array.dart |
+++ b/runtime/lib/array.dart |
@@ -104,6 +104,10 @@ class _ObjectArray<E> implements List<E> { |
return IterableMixinWorkaround.mapList(this, f); |
} |
+ List mappedBy(f(E element)) { |
+ IterableMixinWorkaround.mappedByList(this, f); |
+ } |
+ |
reduce(initialValue, combine(previousValue, E element)) { |
return IterableMixinWorkaround.reduce(this, initialValue, combine); |
} |
@@ -160,7 +164,7 @@ class _ObjectArray<E> implements List<E> { |
return this.length == 0; |
} |
- Iterable<E> get reversed => new ReversedListIterable<E>(this); |
+ List<E> get reversed => new ReversedListView<E>(this, 0, null); |
void sort([int compare(E a, E b)]) { |
IterableMixinWorkaround.sortList(this, compare); |
@@ -334,6 +338,10 @@ class _ImmutableArray<E> implements List<E> { |
return IterableMixinWorkaround.mapList(this, f); |
} |
+ List mappedBy(f(E element)) { |
+ return IterableMixinWorkaround.mappedByList(this, f); |
+ } |
+ |
String join([String separator]) { |
return IterableMixinWorkaround.joinList(this, separator); |
} |
@@ -394,7 +402,7 @@ class _ImmutableArray<E> implements List<E> { |
return this.length == 0; |
} |
- Iterable<E> get reversed => new ReversedListIterable<E>(this); |
+ List<E> get reversed => new ReversedListView<E>(this, 0, null); |
void sort([int compare(E a, E b)]) { |
throw new UnsupportedError( |