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