Index: tools/dom/templates/immutable_list_mixin.darttemplate |
diff --git a/tools/dom/templates/immutable_list_mixin.darttemplate b/tools/dom/templates/immutable_list_mixin.darttemplate |
index 00709742ae4e60ec76d76ee6b20efbb6c494cb8f..9e7251734a4784ed5edac815acbee840b617d852 100644 |
--- a/tools/dom/templates/immutable_list_mixin.darttemplate |
+++ b/tools/dom/templates/immutable_list_mixin.darttemplate |
@@ -29,7 +29,10 @@ $endif |
String join([String separator]) => |
IterableMixinWorkaround.joinList(this, separator); |
- List mappedBy(f($E element)) => IterableMixinWorkaround.mappedByList(this, f); |
+ Iterable map(f($E element)) => |
floitsch
2013/01/30 14:48:44
should return an iterable.
Lasse Reichstein Nielsen
2013/01/31 11:33:49
Done.
|
+ IterableMixinWorkaround.mappedByList(this, f); |
+ |
+ Iterable mappedBy(f($E element)) => map(f); |
Iterable<$E> where(bool f($E element)) => |
IterableMixinWorkaround.where(this, f); |
@@ -43,13 +46,13 @@ $endif |
bool get isEmpty => this.length == 0; |
- List<$E> take(int n) => IterableMixinWorkaround.takeList(this, n); |
+ Iterable<$E> take(int n) => IterableMixinWorkaround.takeList(this, n); |
Iterable<$E> takeWhile(bool test($E value)) { |
return IterableMixinWorkaround.takeWhile(this, test); |
} |
- List<$E> skip(int n) => IterableMixinWorkaround.skipList(this, n); |
+ Iterable<$E> skip(int n) => IterableMixinWorkaround.skipList(this, n); |
Iterable<$E> skipWhile(bool test($E value)) { |
return IterableMixinWorkaround.skipWhile(this, test); |