Index: compiler/lib/implementation/array.dart |
=================================================================== |
--- compiler/lib/implementation/array.dart (revision 3161) |
+++ compiler/lib/implementation/array.dart (working copy) |
@@ -76,6 +76,10 @@ |
Collections.forEach(this, f); |
} |
+ Collection map(f(T element)) { |
+ return Collections.map(this, new List(), f); |
+ } |
+ |
Collection<T> filter(bool f(T element)) { |
return Collections.filter(this, new List<T>(), f); |
} |