fixed

On Oct 2, 2013, at 10:45 AM, Matthew Rocklin <notifications@github.com> wrote:

> In toolz/itertoolz/recipes.py:
> 
> > +
> > +    Note: mapping `compose(list, second)` is required to make this
> > +    both Python 2 and 3 compatible (Python 3 works without the
> > +    application of `list`).
> > +
> > +    >>> is_space = lambda c: c == " "
> > +    >>> list(partitionby(is_space, "I have spaces"))
> > +    [['I'], [' '], ['h', 'a', 'v', 'e'], [' '], ['s', 'p', 'a', 'c', 'e', 's']]
> > +
> > +    >>> is_large = lambda x: x > 10
> > +    >>> list(partitionby(is_large, [1, 2, 1, 99, 88, 33, 99, -1, 5]))
> > +    [[1, 2, 1], [99, 88, 33, 99], [-1, 5]]
> > +
> > +    See also:
> > +        partition
> > +        groupby
> add itertools.groupby
> 
> —
> Reply to this email directly or view it on GitHub.
>