Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(888)

Unified Diff: runtime/lib/array.dart

Issue 10826264: Revert "Add reduce to Collection." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « corelib/src/implementation/hash_map_set.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index 15d3219910bbda047ca532167fd348aac57f197b..9980d5da6ff4edbf18a0b52a7de3afc0ead7cf5e 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -88,11 +88,6 @@ class ObjectArray<E> implements List<E> {
return Collections.map(this, new GrowableObjectArray.withCapacity(length), f);
}
- Dynamic reduce(Dynamic initialValue,
- Dynamic combine(Dynamic previousValue, E element)) {
- return Collections.reduce(this, initialValue, combine);
- }
-
Collection<E> filter(bool f(E element)) {
return Collections.filter(this, new GrowableObjectArray<E>(), f);
}
@@ -225,11 +220,6 @@ class ImmutableArray<E> implements List<E> {
return Collections.map(this, new GrowableObjectArray.withCapacity(length), f);
}
- Dynamic reduce(Dynamic initialValue,
- Dynamic combine(Dynamic previousValue, E element)) {
- return Collections.reduce(this, initialValue, combine);
- }
-
Collection<E> filter(bool f(E element)) {
return Collections.filter(this, new GrowableObjectArray<E>(), f);
}
« no previous file with comments | « corelib/src/implementation/hash_map_set.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698