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

Unified Diff: client/dom/generated/src/wrapping/_Float32ArrayWrappingImplementation.dart

Issue 9114026: Add map to dart:dom collections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: x Created 8 years, 12 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/dom/generated/src/wrapping/_Float32ArrayWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_Float32ArrayWrappingImplementation.dart b/client/dom/generated/src/wrapping/_Float32ArrayWrappingImplementation.dart
index 90ddc0489c262b0033e166f4ee557f512a64f578..2ce0eda24540cd6490b419e4a3b019ce31297908 100644
--- a/client/dom/generated/src/wrapping/_Float32ArrayWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_Float32ArrayWrappingImplementation.dart
@@ -67,6 +67,10 @@ class _Float32ArrayWrappingImplementation extends _ArrayBufferViewWrappingImplem
_Collections.forEach(this, f);
}
+ Collection map(f(num element)) {
+ return _Collections.map(this, [], f);
+ }
+
Collection<num> filter(bool f(num element)) {
return _Collections.filter(this, new List<num>(), f);
}

Powered by Google App Engine
This is Rietveld 408576698