I like the word counting example a lot

On Sep 22, 2013, at 7:22 PM, Matthew Rocklin <notifications@github.com> wrote:

> In README.md:
> 
> > -[![Build Status](https://travis-ci.org/mrocklin/toolz.png)](https://travis-ci.org/mrocklin/toolz)
> > +[![Build Status](https://travis-ci.org/pytoolz/toolz.png)](https://travis-ci.org/pytoolz/toolz)
> > +
> > +Toolz is implemented in three parts:
> > +
> > +* [`itertoolz`](https://github.com/pytoolz/toolz/blob/master/toolz/itertoolz/core.py), for opertions on iterables (sequences).  Examples: `groupby`, `concat`, `interpose`, `interleave`.
> > +* [`functoolz`](https://github.com/pytoolz/toolz/blob/master/toolz/functoolz/core.py), for higher-order functions.  Examples: `comp`, `memoize`, `iterate`.
> > +* [`dicttoolz`](https://github.com/pytoolz/toolz/blob/master/toolz/dicttoolz/core.py), for operations on dictionaries.  Examples: `assoc`, `update-in`, `merge`.
> > +
> > +These three are implemented as separate directories but are imported from a single module.  For example,
> > +
> > +    >>> from toolz import groupby, comp
> > +    >>> square = lambda x: x * x
> > +    >>> small = lambda x: x < 10
> > +    >>> groupby(comp(small, square), range(10))
> > +    {False: [4, 5, 6, 7, 8, 9], True: [0, 1, 2, 3]}
> >  
> I like my groupby tests https://gist.github.com/mrocklin/5722155 .
> 
> And wordcounting is fairly standard (users already know the task) and simple (we rock at it).
> 
> def stem(word):
>     return word.lower().rstrip(',.s')
> 
> wordcount = comp(open, map(str.split), concat, stem, frequencies)
> —
> Reply to this email directly or view it on GitHub.
>