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

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: 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
Index: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index 39e35fdb049586f3f867094c0b8e11ecf73dcca0..6cc0498a50b92c9421d10663f7f92520649fdff2 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -242,10 +242,12 @@ class _GrowableObjectArray<T> implements List<T> {
return buffer.toString();
}
- List mappedBy(f(T element)) {
+ Iterable map(f(T element)) {
return IterableMixinWorkaround.mappedByList(this, f);
floitsch 2013/01/30 14:48:44 should return an Iterable.
Lasse Reichstein Nielsen 2013/01/31 11:33:49 Done.
}
+ Iterable mappedBy(f(T element)) => map(f);
+
reduce(initialValue, combine(previousValue, T element)) {
return IterableMixinWorkaround.reduce(this, initialValue, combine);
}
@@ -254,7 +256,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 +264,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);
}

Powered by Google App Engine
This is Rietveld 408576698