Index: runtime/lib/typeddata.dart |
diff --git a/runtime/lib/typeddata.dart b/runtime/lib/typeddata.dart |
index 35eed4ff9839a58c95d1d0f287b479d7b7aea210..26445b805fb71cdfb93862a4907d818ec7e6b2d2 100644 |
--- a/runtime/lib/typeddata.dart |
+++ b/runtime/lib/typeddata.dart |
@@ -307,9 +307,8 @@ abstract class _TypedListBase { |
return IterableMixinWorkaround.join(this, separator); |
} |
- dynamic reduce(dynamic initialValue, |
- dynamic combine(dynamic initialValue, element)) { |
- return IterableMixinWorkaround.reduce(this, initialValue, combine); |
+ dynamic reduce(dynamic combine(value, element)) { |
floitsch
2013/04/10 15:14:07
Return type is int.
Lasse Reichstein Nielsen
2013/04/11 07:54:04
Why are the iterables untyped? I was assuming type
floitsch
2013/04/11 09:36:41
If they work only on ints and nums then they shoul
|
+ return IterableMixinWorkaround.reduce(this, combine); |
} |
dynamic fold(dynamic initialValue, |
@@ -450,12 +449,6 @@ abstract class _TypedListBase { |
throw new StateError("More than one element"); |
} |
- int min([int compare(int a, int b)]) => |
- IterableMixinWorkaround.min(this, compare); |
- |
- int max([int compare(int a, int b)]) => |
- IterableMixinWorkaround.max(this, compare); |
- |
void removeRange(int start, int length) { |
throw new UnsupportedError( |
"Cannot remove from a non-extendable array"); |