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

Unified Diff: runtime/lib/byte_array.dart

Issue 12188011: Added expand method to iterables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« 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 906259ca147de49689d97d1bae47d58c002a8fa3..14b1b17fb351a3d9b8230bc0f7d49bf7a466d60d 100644
--- a/runtime/lib/byte_array.dart
+++ b/runtime/lib/byte_array.dart
@@ -246,10 +246,14 @@ abstract class _ByteArrayBase {
return IterableMixinWorkaround.reduce(this, initialValue, combine);
}
- Collection where(bool f(element)) {
+ Collection where(bool f(int element)) {
return IterableMixinWorkaround.where(this, f);
}
+ Iterable expand(Iterable f(int element)) {
+ return IterableMixinWorkaround.expand(this, f);
+ }
+
Iterable<int> take(int n) {
return IterableMixinWorkaround.takeList(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