| Index: runtime/lib/array.dart
|
| diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
|
| index 37efab9c7f4d7d7ebba390d179f0a7049ac21d89..0f10ceb2b541e9a3cbb45015e3080469044183fb 100644
|
| --- a/runtime/lib/array.dart
|
| +++ b/runtime/lib/array.dart
|
| @@ -114,8 +114,8 @@ class _ObjectArray<E> implements List<E> {
|
| return IterableMixinWorkaround.mapList(this, f);
|
| }
|
|
|
| - reduce(initialValue, combine(previousValue, E element)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + E reduce(E combine(E value, E element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| fold(initialValue, combine(previousValue, E element)) {
|
| @@ -234,10 +234,6 @@ class _ObjectArray<E> implements List<E> {
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - E min([int compare(E a, E b)]) => IterableMixinWorkaround.min(this, compare);
|
| -
|
| - E max([int compare(E a, E b)]) => IterableMixinWorkaround.max(this, compare);
|
| -
|
| List<E> toList({ bool growable: true}) {
|
| return new List<E>.from(this, growable: growable);
|
| }
|
| @@ -361,8 +357,8 @@ class _ImmutableArray<E> implements List<E> {
|
| return IterableMixinWorkaround.joinList(this, separator);
|
| }
|
|
|
| - reduce(initialValue, combine(previousValue, E element)) {
|
| - return IterableMixinWorkaround.reduce(this, initialValue, combine);
|
| + E reduce(E combine(E value, E element)) {
|
| + return IterableMixinWorkaround.reduce(this, combine);
|
| }
|
|
|
| fold(initialValue, combine(previousValue, E element)) {
|
| @@ -486,10 +482,6 @@ class _ImmutableArray<E> implements List<E> {
|
| throw new StateError("More than one element");
|
| }
|
|
|
| - E min([int compare(E a, E b)]) => IterableMixinWorkaround.min(this, compare);
|
| -
|
| - E max([int compare(E a, E b)]) => IterableMixinWorkaround.max(this, compare);
|
| -
|
| List<E> toList({ bool growable: true }) {
|
| return new List<E>.from(this, growable: growable);
|
| }
|
|
|