Eric Abrahamsen <e...@ericabrahamsen.net> wrote:
> > The mapping API allows you to walk through the entries, filter the ones > > you want and apply a function on each remaining entry. So cribbing heavily > > from Simon's code, the following should count all the entries with tag > > "foo": > > Nice! Seems like the mapping API could be used as the basis for this > whole functionality. > Indeed: it would require a bit of refactoring of Simon's code to provide the function(s) to apply to each entry, and changes to the top level functions to use the mapping API instead of looping explicitly. Nick