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

Unified Diff: runtime/lib/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 | « no previous file | runtime/lib/byte_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index 3b457faa494fa798cade62fa09c65d31c9dd88dc..3ce453bba5e3625287e521949cf1ca9908b2a019 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -116,6 +116,10 @@ class _ObjectArray<E> implements List<E> {
return IterableMixinWorkaround.where(this, f);
}
+ Iterable expand(Iterable f(E element)) {
+ return IterableMixinWorkaround.expand(this, f);
+ }
+
Iterable<E> take(int n) {
return IterableMixinWorkaround.takeList(this, n);
}
@@ -350,6 +354,10 @@ class _ImmutableArray<E> implements List<E> {
return IterableMixinWorkaround.where(this, f);
}
+ Iterable expand(Iterable f(E element)) {
+ return IterableMixinWorkaround.expand(this, f);
+ }
+
Iterable<E> take(int n) {
return IterableMixinWorkaround.takeList(this, n);
}
« no previous file with comments | « no previous file | runtime/lib/byte_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698