Index: client/samples/swarm/DataSource.dart |
=================================================================== |
--- client/samples/swarm/DataSource.dart (revision 3161) |
+++ 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(), f); |
+ } |
+ |
List<Section> filter(bool f(Section element)) { |
return Collections.filter(this, new List<Section>(), f); |
} |