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

Unified Diff: runtime/lib/byte_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/byte_array.dart
diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
index 9794eba4ca99a3c1fa4eed8df9cf5976e05a5ad9..13944478a7421087d5260dbc312fd0fe3be00f3c 100644
--- a/runtime/lib/byte_array.dart
+++ b/runtime/lib/byte_array.dart
@@ -229,10 +229,12 @@ abstract class _ByteArrayBase {
}
}
- List mappedBy(f(int element)) {
+ Iterable map(f(int element)) {
floitsch 2013/01/30 14:48:44 map should already return an Iterable.
Lasse Reichstein Nielsen 2013/01/31 11:33:49 Now returns a non-List iterable.
return IterableMixinWorkaround.mappedByList(this, f);
}
+ Iterable mappedBy(f(int element)) => map(f);
+
String join([String separator]) {
return IterableMixinWorkaround.join(this, separator);
}
@@ -246,7 +248,7 @@ abstract class _ByteArrayBase {
return IterableMixinWorkaround.where(this, f);
}
- List<int> take(int n) {
+ Iterable<int> take(int n) {
return IterableMixinWorkaround.takeList(this, n);
}
@@ -254,7 +256,7 @@ abstract class _ByteArrayBase {
return IterableMixinWorkaround.takeWhile(this, test);
}
- List<int> skip(int n) {
+ Iterable<int> skip(int n) {
return IterableMixinWorkaround.skipList(this, n);
}

Powered by Google App Engine
This is Rietveld 408576698