Chromium Code Reviews| Index: frog/utils.dart |
| =================================================================== |
| --- frog/utils.dart (revision 3161) |
| +++ frog/utils.dart (working copy) |
| @@ -72,6 +72,7 @@ |
| Iterator<E> iterator() => new FixedIterator<E>(value, length); |
| void forEach(void f(E element)) { Collections.forEach(this, f); } |
| + Collection map(f(E element)) => Collections.map(this, new List(), f); |
| Collection<E> filter(bool f(E element)) { |
| return Collections.filter(this, new List<E>(), f); |
| } |