Index: client/samples/swarm/DataSource.dart |
=================================================================== |
--- client/samples/swarm/DataSource.dart (revision 2973) |
+++ client/samples/swarm/DataSource.dart (working copy) |
@@ -87,6 +87,10 @@ |
List<Section> get sections() => _sections; |
// Collection<Section> methods: |
+ List map(f(Section element)) { |
+ return Collections.map(this, new List<Section>(), f); |
ahe
2012/01/05 22:36:54
How do you know that f returns a Section?
gbracha
2012/01/12 00:53:57
I don't. It's a mistake. Fixed.
|
+ } |
+ |
List<Section> filter(bool f(Section element)) { |
return Collections.filter(this, new List<Section>(), f); |
} |