Index: runtime/lib/byte_buffer.dart |
=================================================================== |
--- runtime/lib/byte_buffer.dart (revision 2973) |
+++ runtime/lib/byte_buffer.dart (working copy) |
@@ -93,6 +93,10 @@ |
return Collections.every(this, f); |
} |
+ Collection map(f(int element)) { |
+ return Collections.map(this, new GrowableObjectArray(), f); |
ahe
2012/01/05 22:36:54
new GrowableObjectArray(length)
|
+ } |
+ |
Collection filter(bool f(int element)) { |
return Collections.filter(this, new GrowableObjectArray(), f); |
} |