Chromium Code Reviews| Index: client/dom/frog/dom_frog.dart |
| =================================================================== |
| --- client/dom/frog/dom_frog.dart (revision 3161) |
| +++ client/dom/frog/dom_frog.dart (working copy) |
| @@ -12045,6 +12045,15 @@ |
| return true; |
| } |
| + static List map(Iterable<Object> source, |
| + List<Object> destination, |
| + f(o)) { |
| + for (final e in source) { |
| + destination.add(f(e)); |
| + } |
| + return destination; |
| + } |
| + |
| static List filter(Iterable<Object> source, |
| List<Object> destination, |
| bool f(o)) { |