Index: runtime/lib/byte_buffer.dart |
=================================================================== |
--- runtime/lib/byte_buffer.dart (revision 3161) |
+++ 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.withCapacity(length), f); |
+ } |
+ |
Collection filter(bool f(int element)) { |
return Collections.filter(this, new GrowableObjectArray(), f); |
} |