Index: frog/utils.dart |
=================================================================== |
--- frog/utils.dart (revision 2973) |
+++ frog/utils.dart (working copy) |
@@ -122,6 +122,9 @@ |
Iterator<E> iterator() => new FixedIterator<E>(value, length); |
void forEach(void f(E element)) { Collections.forEach(this, f); } |
+ Collection map(f(E element)) { |
sra1
2012/01/05 22:46:49
nit: prefer =>, especially if it fits on one line.
|
+ return Collections.map(this, new List(), f); |
+ } |
Collection<E> filter(bool f(E element)) { |
return Collections.filter(this, new List<E>(), f); |
} |