Index: client/html/src/_Collections.dart |
=================================================================== |
--- client/html/src/_Collections.dart (revision 2973) |
+++ client/html/src/_Collections.dart (working copy) |
@@ -14,6 +14,15 @@ |
} |
} |
+ static List map(Iterable<Object> source, |
sra1
2012/01/05 22:46:49
Question - is there a good reason for this to be I
gbracha
2012/01/12 00:53:57
I don't think so. I've followed the style that's a
|
+ List<Object> destination, |
ahe
2012/01/05 22:36:54
Indentation
sra1
2012/01/05 22:46:49
Indentation - make these line up
|
+ bool f(o)) { |
ahe
2012/01/05 22:36:54
Indentation.
|
+ for (final e in source) { |
+ destination.add(f(e)); |
+ } |
+ return destination; |
+ } |
+ |
static bool some(Iterable<Object> iterable, bool f(Object o)) { |
for (final e in iterable) { |
if (f(e)) return true; |