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

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: 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/array.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/byte_array.dart
diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
index 9794eba4ca99a3c1fa4eed8df9cf5976e05a5ad9..74e2c3a357360a02f59b6fd02dea8c57a0f822b1 100644
--- a/runtime/lib/byte_array.dart
+++ b/runtime/lib/byte_array.dart
@@ -229,6 +229,10 @@ abstract class _ByteArrayBase {
}
}
+ Iterable map(f(int element)) {
+ return IterableMixinWorkaround.map(this, f);
+ }
+
List mappedBy(f(int element)) {
return IterableMixinWorkaround.mappedByList(this, f);
}
@@ -246,7 +250,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 +258,7 @@ abstract class _ByteArrayBase {
return IterableMixinWorkaround.takeWhile(this, test);
}
- List<int> skip(int n) {
+ Iterable<int> skip(int n) {
return IterableMixinWorkaround.skipList(this, n);
}
« no previous file with comments | « runtime/lib/array.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698