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

Unified Diff: runtime/lib/growable_array.dart

Issue 12295009: Recommit changing List.skip/take/revert returns Iterable and remove mappedBy. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make Future.wait simpler. Created 7 years, 10 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
Index: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index 5bd89879df7272155a957db3de7e50861f5670bf..27699e2efe384a2f6f9bee51e1844c91b6acabbc 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -246,10 +246,6 @@ class _GrowableObjectArray<T> implements List<T> {
return IterableMixinWorkaround.mapList(this, f);
}
- List mappedBy(f(T element)) {
- return IterableMixinWorkaround.mappedByList(this, f);
- }
-
reduce(initialValue, combine(previousValue, T element)) {
return IterableMixinWorkaround.reduce(this, initialValue, combine);
}
@@ -310,7 +306,7 @@ class _GrowableObjectArray<T> implements List<T> {
this.length = 0;
}
- List<T> get reversed => new ReversedListView<T>(this, 0, null);
+ Iterable<T> get reversed => new ReversedListIterable<T>(this);
void sort([int compare(T a, T b)]) {
IterableMixinWorkaround.sortList(this, compare);

Powered by Google App Engine
This is Rietveld 408576698