I'll also be mostly unproductive during working hours.


On Mon, Sep 16, 2013 at 7:51 AM, John Jacobsen <notifications@github.com>wrote:

> In itertoolz/core.py:
>
> > +    Variadic version of concat, a la Clojure
> > +
> > +    >>> list(concatv([], ["a"], ["b", "c"]))
> > +    ['a', 'b', 'c']
> > +    """
> > +    return concat(seqs)
> > +
> > +
> > +def mapcat(f, seqs):
> > +    """
> > +    Apply f to each sequence in seqs, concatenating results
> > +    >>> list(mapcat(lambda s: [c.upper() for c in s],
> > +    ...             [["a", "b"], ["c", "d", "e"]]))
> > +    ['A', 'B', 'C', 'D', 'E']
> > +    """
> > +    return concat(itertools.imap(f, seqs))
>
> I'll continue working on the py3 issues when i have a minute.
> … <#14127414a1c112b9_>
> On Sep 16, 2013, at 9:26 AM, Matthew Rocklin <notifications@github.com>
> wrote: In itertoolz/core.py: > + Variadic version of concat, a la Clojure >
> + > + >>> list(concatv([], ["a"], ["b", "c"])) > + ['a', 'b', 'c'] > + """
> > + return concat(seqs) > + > + > +def mapcat(f, seqs): > + """ > + Apply f
> to each sequence in seqs, concatenating results > + >>> list(mapcat(lambda
> s: [c.upper() for c in s], > + ... [["a", "b"], ["c", "d", "e"]])) > +
> ['A', 'B', 'C', 'D', 'E'] > + """ > + return concat(itertools.imap(f,
> seqs)) This may not exist in py33 and may need to be added to
> compatibility. Travis is now running tests but not reporting them in
> github. See https://travis-ci.org/pytoolz/itertoolz/ — Reply to this
> email directly or view it on GitHub.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pytoolz/itertoolz/pull/2/files#r6378392>
> .
>