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

Unified Diff: runtime/lib/growable_array.dart

Issue 12086062: Rename mappedBy to map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undo change to test-script. Created 7 years, 11 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 | « runtime/lib/byte_array.dart ('k') | samples/newissues/newissues.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index 39e35fdb049586f3f867094c0b8e11ecf73dcca0..cd318648332cccb08ccecb74bd79091817e82af8 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -242,6 +242,10 @@ class _GrowableObjectArray<T> implements List<T> {
return buffer.toString();
}
+ Iterable map(f(T element)) {
+ return IterableMixinWorkaround.map(this, f);
+ }
+
List mappedBy(f(T element)) {
return IterableMixinWorkaround.mappedByList(this, f);
}
@@ -254,7 +258,7 @@ class _GrowableObjectArray<T> implements List<T> {
return IterableMixinWorkaround.where(this, f);
}
- List<T> take(int n) {
+ Iterable<T> take(int n) {
return IterableMixinWorkaround.takeList(this, n);
}
@@ -262,7 +266,7 @@ class _GrowableObjectArray<T> implements List<T> {
return IterableMixinWorkaround.takeWhile(this, test);
}
- List<T> skip(int n) {
+ Iterable<T> skip(int n) {
return IterableMixinWorkaround.skipList(this, n);
}
« no previous file with comments | « runtime/lib/byte_array.dart ('k') | samples/newissues/newissues.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698