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

Unified Diff: client/html/src/ElementWrappingImplementation.dart

Issue 9114021: Added method map to Collection interface and all its implementations (except classes generated fr... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 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
Index: client/html/src/ElementWrappingImplementation.dart
===================================================================
--- client/html/src/ElementWrappingImplementation.dart (revision 3161)
+++ client/html/src/ElementWrappingImplementation.dart (working copy)
@@ -30,6 +30,14 @@
}
}
+ Collection map(f(Element element)) {
+ List output = new List();
+ forEach((Element element) {
+ output.add(f(element));
+ });
+ return output;
+ }
+
Collection<Element> filter(bool f(Element element)) {
List<Element> output = new List<Element>();
forEach((Element element) {
@@ -161,12 +169,19 @@
}
}
+ Collection map(f(Element element)) {
+ //TODO(jacobr): Implement this.
+ throw 'Not implemented yet.';
+ }
+
Collection<Element> filter(bool f(Element element)) {
- throw 'Not impl yet. todo(jacobr)';
+ //TODO(jacobr): Implement this.
+ throw 'Not implemented yet.';
}
bool every(bool f(Element element)) {
- throw 'Not impl yet. todo(jacobr)';
+ //TODO(jacobr): Implement this.
+ throw 'Not implemented yet.';
}
bool some(bool f(Element element)) {
« no previous file with comments | « client/html/src/DocumentFragmentWrappingImplementation.dart ('k') | client/html/src/NodeWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698