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); |
} |