Chromium Code Reviews| Index: client/dom/src/_Collections.dart |
| =================================================================== |
| --- client/dom/src/_Collections.dart (revision 2973) |
| +++ client/dom/src/_Collections.dart (working copy) |
| @@ -14,6 +14,15 @@ |
| } |
| } |
| + static List map(Iterable<Object> source, |
| + List<Object> destination, |
|
ahe
2012/01/05 22:36:54
Indentation.
|
| + 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; |