Index: runtime/lib/collections.dart |
=================================================================== |
--- runtime/lib/collections.dart (revision 2973) |
+++ runtime/lib/collections.dart (working copy) |
@@ -28,6 +28,15 @@ |
return true; |
} |
+ static List<Object> map(Iterable<Object> source, |
+ List<Object> destination, |
ahe
2012/01/05 22:36:54
Indentation.
|
+ bool f(Object o)) { |
ahe
2012/01/05 22:36:54
Indentation.
|
+ for (final e in source) { |
+ destination.add(f(e)); |
+ } |
+ return destination; |
+ } |
+ |
static List<Object> filter(Iterable<Object> source, |
List<Object> destination, |
bool f(Object o)) { |